ListFormat

Overview

ListFormat is a class in Aspose.Words FOSS for Java.

Allows to control what list formatting is applied to a paragraph.

Edition status of its 15 listed members (a property and its accessor methods are listed separately, overloads once): 15 not yet exercised by a verified example.

This class declares 11 methods for ListFormat objects in Java programs. Available methods include: applyBulletDefault, applyNumberDefault, getList, getListLevel, getListLevelNumber, isListItem, listIndent, listOutdent, removeNumbers, setList, setListLevelNumber. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: list, listItem, listLevel, listLevelNumber.

Properties

NameTypeAccessDescription
listLevelNumberintRead/WriteGets or sets the list level number (0 to 8) for the paragraph.
listItembooleanReadTrue when the paragraph has bulleted or numbered formatting applied to it.
listListRead/WriteGets or sets the list this paragraph is a member of.
listLevelListLevelReadGets the list level.

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.
getListLevelNumber() → intGets or sets the list level number (0 to 8) for the paragraph.
setListLevelNumber(value: int)Sets the list level number value.
isListItem() → booleanTrue when the paragraph has bulleted or numbered formatting applied to it.
getList() → ListGets or sets the list this paragraph is a member of.
setList(value: List)Sets the list value.
getListLevel() → ListLevelReturns the list level.

See Also