List Numbering
The list mechanism allows you create very complex lists. Here we will described how to create simple lists.
The list mechanism consists of a list id and a list-or (list override id). These ids can be created using the TerEditList and TerEditListOr functions. One or more list-or ids can be created for a list id. However, it is sufficient in most cases to create just one or two list-or ids for each list id. The list and list-or id can have multiple levels. Each level can designate its own list numbering format (decimal, alpha, etc).
To apply list numbering to text, you would first create a list and its corresponding list-or id. Then you would apply the list-or id to the selected text (one or more paragraphs) using the TerSetParaList function. You also specify the list level when calling the TerSetParaList function.
When a list needs to be restarted from 1, it is simpler to create another list-id (and associated list-or ids).
The product also includes TerSetBulletList function which wraps the basic list functions in one easy method call.