java.lang.Objectcom.aspose.words.ListFormat
public class ListFormat
A paragraph in a Microsoft Word document can be bulleted or numbered.
When a paragraph is bulleted or numbered, it is said that list formatting
is applied to the paragraph. You do not create objects of the The list formatting itself is stored inside a The paragraphs do not physically belong to a list. The paragraphs just
reference a particular list object via the
Property Getters/Setters Summary | ||
---|---|---|
boolean | isListItem() | |
True when the paragraph has bulleted or numbered formatting applied to it. | ||
Aspose.Words.Lists.List | getList() | |
Gets or sets the list this paragraph is a member of. | ||
Aspose.Words.Lists.ListLevel | getListLevel() | |
Returns the list level formatting plus any formatting overrides applied to the current paragraph. | ||
int | getListLevelNumber() | |
void | setListLevelNumber(int value) | |
Gets or sets the list level number (0 to 8) for the paragraph. |
Method Summary | ||
---|---|---|
void | applyBulletDefault() | |
Starts a new default bulleted list and applies it to the paragraph. | ||
void | applyNumberDefault() | |
Starts a new default numbered list and applies it to the paragraph. | ||
void | listIndent() | |
Increases the list level of the current paragraph by one level. | ||
void | listOutdent() | |
Decreases the list level of the current paragraph by one level. | ||
void | removeNumbers() | |
Removes numbers or bullets from the current paragraph and sets list level to zero. |
Property Getters/Setters Detail |
---|
isListItem | |
public boolean isListItem() |
getList | |
public Aspose.Words.Lists.List getList() |
The list that is being assigned to this property must belong to the current document.
The list that is being assigned to this property must not be a list style definition.
Setting this property to null removes bullets and numbering from the paragraph
and sets the list level number to zero. Setting this property to null is equivalent
to calling
getListLevel | |
public Aspose.Words.Lists.ListLevel getListLevel() |
getListLevelNumber/setListLevelNumber | |
public int getListLevelNumber() / public void setListLevelNumber(int value) |
In Word documents, lists may consist of 1 or 9 levels, numbered 0 to 8.
Has effect only when the
Method Detail |
---|
applyBulletDefault | |
public void applyBulletDefault() |
This is a shortcut method that creates a new list using the default bulleted template, applies it to the paragraph and selects the 1st list level.
applyNumberDefault | |
public void applyNumberDefault() |
This is a shortcut method that creates a new list using the default numbered template, applies it to the paragraph and selects the 1st list level.
listIndent | |
public void listIndent() |
This method changes the list level and applies formatting properties of the new level.
In Word documents, lists may consist of up to nine levels. List formatting for each level specifies what bullet or number is used, left indent, space between the bullet and text etc.
listOutdent | |
public void listOutdent() |
This method changes the list level and applies formatting properties of the new level.
In Word documents, lists may consist of up to nine levels. List formatting for each level specifies what bullet or number is used, left indent, space between the bullet and text etc.
removeNumbers | |
public void removeNumbers() |
Calling this method is equivalent to setting the