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

NameTypeAccessDescription
ListLevelNumberintRead/WriteGets or sets the list level number (0 to 8) for the paragraph.
IsListItemboolReadTrue when the paragraph has bulleted or numbered formatting applied to it.
ListListRead/WriteGets or sets the list this paragraph is a member of.
ListLevelListLevelReadReturns the list level formatting plus any formatting overrides applied to the current paragraph.

Methods

SignatureDescription
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.

See Also