Skip to main content
A newer version of this page is available. .

Lists

  • 2 minutes to read

DXRichEdit supports bulleted, numbered and mixed lists.

Numbered and bulleted lists are represented by specific collections of paragraphs. To format lists, use ToggleSimpleNumberingListCommand, ToggleBulletedListCommand and ToggleMultiLevelListCommand commands. List indentation can be specified by executing IncrementIndentCommand or DecrementIndentCommand commands. Numeration in numbering lists can be changed by executing IncrementNumerationFromParagraphCommand and DecrementNumerationFromParagraphCommand commands.

Each paragraph in a document may contain numbering information. Numbering information for a specific paragraph is determined by its Paragraph.ListIndex and Paragraph.ListLevel properties.

The ListIndex property value is the index in the document’s NumberingListCollection. The collection is available via the Document.NumberingLists property.

The collection is composed of items with a NumberingList interface. Each item is an instance of a certain abstract numbering definition, which is represented by AbstractNumberingList interface. A collection of abstract numbering definitions is accessible via the Document.AbstractNumberingLists property.

To specify formatting for a numbered paragraph, you should modify properties of an object with the an ListLevelProperties interface accessible via the NumberingList.Levels property. This change will apply to all paragraphs with a certain level linked to this numbering list. If a property is not specified for the numbering list, the definition for the corresponding level comes from the abstract numbering definition (AbstractNumberingList) linked to a NumberedList.

Bulleted lists are indicated by the NumberingListBase.NumberingType property set to NumberingType.Bullet and the ListLevel.BulletLevel property set to true.

Note

To remove numbering for a particular paragraph, set its ListIndex to -1.

See Also