ASPOSE home

com.aspose.words
Class Style

java.lang.Object
    extended by com.aspose.words.Style
All Implemented Interfaces:
java.lang.Cloneable

public class Style
extends java.lang.Object

Represents a single built-in or user-defined style.

Property Getters/Setters Summary
java.lang.StringgetBaseStyle()
voidsetBaseStyle(java.lang.String value)
           Gets/sets the name of the style this style is based on.
booleangetBuiltIn()
           True if the specified object is one of the built-in styles in MS Word.
DocumentgetDocument()
           Gets the owner document.
FontgetFont()
           Gets the character formatting of the style.
ListgetList()
           Gets the list that defines formatting of this list style.
ListFormatgetListFormat()
           Provides access to the list formatting properties of a paragraph style.
java.lang.StringgetName()
           Gets the name of the style.
java.lang.StringgetNextParagraphStyle()
voidsetNextParagraphStyle(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.
ParagraphFormatgetParagraphFormat()
           Gets the paragraph formatting of the style.
intgetStyleIdentifier()
           Gets the locale independent style identifier. The value of the property is StyleIdentifier integer constant.
StylesgetStyles()
           Gets the collection of styles this style belongs to.
intgetType()
           Gets the style tpe (paragraph or character). The value of the property is StyleType integer constant.
 
Method Summary
voidclearParaAttrs()
          Reserved for internal use.
voidclearRunAttrs()
          Reserved for internal use.
java.lang.ObjectfetchInheritedParaAttr(int key)
          Reserved for internal use.
java.lang.ObjectfetchInheritedRunAttr(int key)
          Reserved for internal use.
java.lang.ObjectgetDirectParaAttr(int key)
          Reserved for internal use.
java.lang.ObjectgetDirectRunAttr(int key)
          Reserved for internal use.
voidsetParaAttr(int key, java.lang.Object value)
          Reserved for internal use.
voidsetRunAttr(int key, java.lang.Object value)
          Reserved for internal use.
 

Property Getters/Setters Detail

getName

public java.lang.String getName()
Gets the name of the style. Names of built-in styles in documents created in different languages of MS Word can be different.
See Also:
StyleIdentifier

getStyleIdentifier

public int getStyleIdentifier()
Gets the locale independent style identifier. The value of the property is StyleIdentifier integer constant.

getType

public int getType()
Gets the style tpe (paragraph or character). The value of the property is StyleType integer constant.

getDocument

public Document getDocument()
Gets the owner document.

getBaseStyle/setBaseStyle

public java.lang.String getBaseStyle()

public void setBaseStyle(java.lang.String value)
Gets/sets the name of the style this style is based on. This will be an empty string if the style is not based on any other style and it can be set to an empty string.

getNextParagraphStyle/setNextParagraphStyle

public java.lang.String getNextParagraphStyle()

public void setNextParagraphStyle(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. This property is not used by Aspose.Words. The next paragraph style will only be applied automatically when you edit the document in MS Word.

getBuiltIn

public boolean getBuiltIn()
True if the specified object is one of the built-in styles in MS Word.

getFont

public Font getFont()
Gets the character formatting of the style.

getParagraphFormat

public ParagraphFormat getParagraphFormat()
Gets the paragraph formatting of the style. This property is only applicable to paragraph styles.

getList

public List getList()
Gets the list that defines formatting of this list style. This property is only applicable to list styles.

getListFormat

public ListFormat getListFormat()
Provides access to the list formatting properties of a paragraph style. This property is only applicable to paragraph styles.

getStyles

public Styles getStyles()
Gets the collection of styles this style belongs to.

Method Detail

clearRunAttrs

public void clearRunAttrs()
Reserved for internal use.

setRunAttr

public void setRunAttr(int key, java.lang.Object value)
Reserved for internal use.

fetchInheritedRunAttr

public java.lang.Object fetchInheritedRunAttr(int key)
                            throws java.lang.Exception
Reserved for internal use.

getDirectRunAttr

public java.lang.Object getDirectRunAttr(int key)
Reserved for internal use.

clearParaAttrs

public void clearParaAttrs()
Reserved for internal use.

setParaAttr

public void setParaAttr(int key, java.lang.Object value)
Reserved for internal use.

fetchInheritedParaAttr

public java.lang.Object fetchInheritedParaAttr(int key)
                             throws java.lang.Exception
Reserved for internal use.

getDirectParaAttr

public java.lang.Object getDirectParaAttr(int key)
Reserved for internal use.

See Also:
          Wiki - the home page for the Aspose.Words Product Documentation that includes Programmer's Guide, Knowledge Base and other articles.
          Aspose.Words Support Forum - our preferred method of support.
          Aspose.Words Team - contact Aspose.Words Team.


ASPOSE home