java.lang.Objectcom.aspose.words.Style
public class Style
Property Getters/Setters Summary | ||
---|---|---|
java.lang.String[] | getAliases() | |
Gets all aliases of this style. If style has no aliases then empty array of string is returned. | ||
java.lang.String | getBaseStyleName() | |
void | setBaseStyleName(java.lang.String value) | |
Gets/sets the name of the style this style is based on. | ||
boolean | getBuiltIn() | |
True if this style is one of the built-in styles in MS Word. | ||
DocumentBase | getDocument() | |
Gets the owner document. | ||
Font | getFont() | |
Gets the character formatting of the style. | ||
boolean | isHeading() | |
True when the style is one of the built-in Heading styles. | ||
boolean | isQuickStyle() | |
void | isQuickStyle(boolean value) | |
Specifies whether this style is shown in the Quick Style gallery inside MS Word UI. | ||
java.lang.String | getLinkedStyleName() | |
Gets the name of the Style linked to this one. Returns Empty string if no styles are linked. | ||
Aspose.Words.Lists.List | getList() | |
Gets the list that defines formatting of this list style. | ||
ListFormat | getListFormat() | |
Provides access to the list formatting properties of a paragraph style. | ||
java.lang.String | getName() | |
void | setName(java.lang.String value) | |
Gets or sets the name of the style. | ||
java.lang.String | getNextParagraphStyleName() | |
void | setNextParagraphStyleName(java.lang.String value) | |
Gets/sets the name of the style to be applied automatically to a new paragraph inserted after a paragraph formatted with the specified style. | ||
ParagraphFormat | getParagraphFormat() | |
Gets the paragraph formatting of the style. | ||
int | getStyleIdentifier() | |
Gets the locale independent style identifier for a built-in style. The value of the property is StyleIdentifier integer constant. | ||
StyleCollection | getStyles() | |
Gets the collection of styles this style belongs to. | ||
int | getType() | |
Gets the style type (paragraph or character). The value of the property is StyleType integer constant. |
Method Summary | ||
---|---|---|
void | clearParaAttrs() | |
Reserved for internal use. | ||
void | clearRunAttrs() | |
Reserved for internal use. | ||
java.lang.Object | fetchInheritedParaAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchInheritedRunAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchParaAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | getDirectParaAttr(int key) | |
Reserved for internal use. | ||
int | getDirectParaAttrsCount() | |
Reserved for internal use. | ||
int | getDirectParaKey(int index) | |
Reserved for internal use. | ||
java.lang.Object | getDirectRunAttr(int key) | |
Reserved for internal use. | ||
int | getDirectRunAttrsCount() | |
Reserved for internal use. | ||
void | remove() | |
Removes the specified style from the document. | ||
void | removeParaAttr(int key) | |
Reserved for internal use. | ||
void | removeRunAttr(int key) | |
Reserved for internal use. | ||
void | setParaAttr(int key, java.lang.Object value) | |
Reserved for internal use. | ||
void | setRunAttr(int key, java.lang.Object value) | |
Reserved for internal use. |
Property Getters/Setters Detail |
---|
getAliases | |
public java.lang.String[] getAliases() |
getBaseStyleName/setBaseStyleName | |
public java.lang.String getBaseStyleName() / public void setBaseStyleName(java.lang.String value) |
getBuiltIn | |
public boolean getBuiltIn() |
getDocument | |
public DocumentBase getDocument() |
getFont | |
public Font getFont() |
For list styles this property returns null.
isHeading | |
public boolean isHeading() |
isQuickStyle/isQuickStyle | |
public boolean isQuickStyle() / public void isQuickStyle(boolean value) |
getLinkedStyleName | |
public java.lang.String getLinkedStyleName() |
getList | |
public Aspose.Words.Lists.List getList() |
This property is only valid for list styles. For other style types this property returns null.
getListFormat | |
public ListFormat getListFormat() |
This property is only valid for paragraph styles. For other style types this property returns null.
getName/setName | |
public java.lang.String getName() / public void setName(java.lang.String value) |
Can not be empty string.
If there already is a style with such name in the collection, then this style will override it. All affected nodes will reference new style.
getNextParagraphStyleName/setNextParagraphStyleName | |
public java.lang.String getNextParagraphStyleName() / public void setNextParagraphStyleName(java.lang.String value) |
getParagraphFormat | |
public ParagraphFormat getParagraphFormat() |
For character and list styles this property returns null.
getStyleIdentifier | |
public int getStyleIdentifier() |
For user defined (custom) styles, this property returns
getStyles | |
public StyleCollection getStyles() |
getType | |
public int getType() |
Method Detail |
---|
clearParaAttrs | |
public void clearParaAttrs() |
clearRunAttrs | |
public void clearRunAttrs() |
fetchInheritedParaAttr | |
public java.lang.Object fetchInheritedParaAttr(int key) |
fetchInheritedRunAttr | |
public java.lang.Object fetchInheritedRunAttr(int key) |
fetchParaAttr | |
public java.lang.Object fetchParaAttr(int key) |
getDirectParaAttr | |
public java.lang.Object getDirectParaAttr(int key) |
getDirectParaAttrsCount | |
public int getDirectParaAttrsCount() |
getDirectParaKey | |
public int getDirectParaKey(int index) |
getDirectRunAttr | |
public java.lang.Object getDirectRunAttr(int key) |
getDirectRunAttrsCount | |
public int getDirectRunAttrsCount() |
remove | |
public void remove() |
removeParaAttr | |
public void removeParaAttr(int key) |
removeRunAttr | |
public void removeRunAttr(int key) |
setParaAttr | |
public void setParaAttr(int key, java.lang.Object value) |
setRunAttr | |
public void setRunAttr(int key, java.lang.Object value) |