java.lang.Objectcom.aspose.words.ListLevel
public class ListLevel
You do not create objects of this class. List level objects are created automatically
when a list is created. You access Use the properties of
Property Getters/Setters Summary | ||
---|---|---|
int | getAlignment() | |
void | setAlignment(int value) | |
Gets or sets the justification of the actual number of the list item. The value of the property is ListLevelAlignment integer constant. | ||
Aspose.Words.Font | getFont() | |
Specifies character formatting used for the list label. | ||
ImageData | getImageData() | |
Returns image data of the picture bullet shape for the current list level. | ||
boolean | isLegal() | |
void | isLegal(boolean value) | |
True if the level turns all inherited numbers to Arabic, false if it preserves their number style. | ||
Aspose.Words.Style | getLinkedStyle() | |
Gets or sets the paragraph style that is linked to this list level. | ||
java.lang.String | getNumberFormat() | |
void | setNumberFormat(java.lang.String value) | |
Returns or sets the number format for the list level. | ||
double | getNumberPosition() | |
void | setNumberPosition(double value) | |
Returns or sets the position (in points) of the number or bullet for the list level. | ||
Aspose.Words.NumberStyle | getNumberStyle() | |
Returns or sets the number style for this list level. | ||
int | getRestartAfterLevel() | |
void | setRestartAfterLevel(int value) | |
Sets or returns the list level that must appear before the specified list level restarts numbering. | ||
int | getStartAt() | |
void | setStartAt(int value) | |
Returns or sets the starting number for this list level. | ||
double | getTabPosition() | |
void | setTabPosition(double value) | |
Returns or sets the tab position (in points) for the list level. | ||
double | getTextPosition() | |
void | setTextPosition(double value) | |
Returns or sets the position (in points) for the second line of wrapping text for the list level. | ||
int | getTrailingCharacter() | |
void | setTrailingCharacter(int value) | |
Returns or sets the character inserted after the number for the list level. The value of the property is ListTrailingCharacter integer constant. |
Method Summary | ||
---|---|---|
void | clearRunAttrs() | |
Reserved for internal use. | ||
void | createPictureBullet() | |
Creates picture bullet shape for the current list level. | ||
void | deletePictureBullet() | |
Deletes picture bullet for the current list level. | ||
java.lang.Object | fetchInheritedRunAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectRunAttr(int key) | |
Reserved for internal use. | ||
int | getDirectRunAttrsCount() | |
Reserved for internal use. | ||
void | removeRunAttr(int key) | |
Reserved for internal use. | ||
void | setRunAttr(int key, java.lang.Object value) | |
Reserved for internal use. |
Property Getters/Setters Detail |
---|
getAlignment/setAlignment | |
public int getAlignment() / public void setAlignment(int value) |
The list label is justified relative to the
getFont | |
public Aspose.Words.Font getFont() |
getImageData | |
public ImageData getImageData() |
isLegal/isLegal | |
public boolean isLegal() / public void isLegal(boolean value) |
getLinkedStyle | |
public Aspose.Words.Style getLinkedStyle() |
This property is null when the list level is not linked to a paragraph style. This property can be set to null.
getNumberFormat/setNumberFormat | |
public java.lang.String getNumberFormat() / public void setNumberFormat(java.lang.String value) |
Among normal text characters, the string can contain placeholder characters \x0000 to \x0008 representing the numbers from the corresponding list levels.
For example, the string "\x0000.\x0001)" will generate a list label that looks something like "1.5)". The number "1" is the current number from the 1st list level, the number "5" is the current number from the 2nd list level.
Null is not allowed, but an empty string meaning no number is valid.
getNumberPosition/setNumberPosition | |
public double getNumberPosition() / public void setNumberPosition(double value) |
getNumberStyle | |
public Aspose.Words.NumberStyle getNumberStyle() |
getRestartAfterLevel/setRestartAfterLevel | |
public int getRestartAfterLevel() / public void setRestartAfterLevel(int value) |
The value of -1 means the numbering will continue.
getStartAt/setStartAt | |
public int getStartAt() / public void setStartAt(int value) |
Default value is 1.
getTabPosition/setTabPosition | |
public double getTabPosition() / public void setTabPosition(double value) |
Has effect only when
getTextPosition/setTextPosition | |
public double getTextPosition() / public void setTextPosition(double value) |
getTrailingCharacter/setTrailingCharacter | |
public int getTrailingCharacter() / public void setTrailingCharacter(int value) |
Method Detail |
---|
clearRunAttrs | |
public void clearRunAttrs() |
createPictureBullet | |
public void createPictureBullet() throws java.lang.Exception |
deletePictureBullet | |
public void deletePictureBullet() |
fetchInheritedRunAttr | |
public java.lang.Object fetchInheritedRunAttr(int key) |
getDirectRunAttr | |
public java.lang.Object getDirectRunAttr(int key) |
getDirectRunAttrsCount | |
public int getDirectRunAttrsCount() |
removeRunAttr | |
public void removeRunAttr(int key) |
setRunAttr | |
public void setRunAttr(int key, java.lang.Object value) |