ListFormat
Overview
ListFormat is a class in Aspose.Words FOSS for .NET.
Allows to control what list formatting is applied to a paragraph.
This class provides 5 methods for working with ListFormat objects in .NET programs.
Available methods include: ApplyBulletDefault, ApplyNumberDefault, ListIndent, ListOutdent, RemoveNumbers.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: IsListItem, List, ListLevel, ListLevelNumber.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ListLevelNumber | int | Read/Write | Gets or sets the list level number (0 to 8) for the paragraph. |
IsListItem | bool | Read | True when the paragraph has bulleted or numbered formatting applied to it. |
List | List | Read/Write | Gets or sets the list this paragraph is a member of. |
ListLevel | ListLevel | Read | Returns the list level formatting plus any formatting overrides applied to the current paragraph. |
Methods
| Signature | Description |
|---|---|
ApplyBulletDefault() | Starts a new default bulleted list and applies it to the paragraph. |
ApplyNumberDefault() | Starts a new default numbered list and applies it to the paragraph. |
RemoveNumbers() | Removes numbers or bullets from the current paragraph and sets list level to zero. |
ListIndent() | Increases the list level of the current paragraph by one level. |
ListOutdent() | Decreases the list level of the current paragraph by one level. |