com.aspose.words
Class TableStyle

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

public class TableStyle 
extends Style

Represents a table style.

Property Getters/Setters Summary
java.lang.String[]getAliases()→ inherited from Style
           Gets all aliases of this style. If style has no aliases then empty array of string is returned.
java.lang.StringgetBaseStyleName()→ inherited from Style
voidsetBaseStyleName(java.lang.String value)
           Gets/sets the name of the style this style is based on.
booleangetBuiltIn()→ inherited from Style
           True if this style is one of the built-in styles in MS Word.
DocumentBasegetDocument()→ inherited from Style
           Gets the owner document.
FontgetFont()→ inherited from Style
           Gets the character formatting of the style.
booleanisHeading()→ inherited from Style
           True when the style is one of the built-in Heading styles.
booleanisQuickStyle()→ inherited from Style
voidisQuickStyle(boolean value)
           Specifies whether this style is shown in the Quick Style gallery inside MS Word UI.
java.lang.StringgetLinkedStyleName()→ inherited from Style
           Gets the name of the Style linked to this one. Returns Empty string if no styles are linked.
Aspose.Words.Lists.ListgetList()→ inherited from Style
           Gets the list that defines formatting of this list style.
ListFormatgetListFormat()→ inherited from Style
           Provides access to the list formatting properties of a paragraph style.
java.lang.StringgetName()→ inherited from Style
voidsetName(java.lang.String value)
           Gets or sets the name of the style.
java.lang.StringgetNextParagraphStyleName()→ inherited from Style
voidsetNextParagraphStyleName(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()→ inherited from Style
           Gets the paragraph formatting of the style.
intgetStyleIdentifier()→ inherited from Style
           Gets the locale independent style identifier for a built-in style. The value of the property is StyleIdentifier integer constant.
StyleCollectiongetStyles()→ inherited from Style
           Gets the collection of styles this style belongs to.
intgetType()→ inherited from Style
           Gets the style type (paragraph or character). The value of the property is StyleType integer constant.
 
Method Summary
voidclearCellAttrs()
          
voidclearParaAttrs()→ inherited from Style
          Reserved for internal use.
voidclearRowAttrs()
          Reserved for internal use.
voidclearRunAttrs()→ inherited from Style
          Reserved for internal use.
java.lang.ObjectfetchCellAttr(int key)
          Reserved for internal use.
java.lang.ObjectfetchInheritedCellAttr(int key)
          Reserved for internal use.
java.lang.ObjectfetchInheritedParaAttr(int key)→ inherited from Style
          Reserved for internal use.
java.lang.ObjectfetchInheritedRowAttr(int key)
          Reserved for internal use.
java.lang.ObjectfetchInheritedRunAttr(int key)→ inherited from Style
          Reserved for internal use.
java.lang.ObjectfetchParaAttr(int key)→ inherited from Style
          Reserved for internal use.
java.lang.ObjectfetchRowAttr(int key)
          Reserved for internal use.
java.lang.ObjectgetDirectCellAttr(int key)
          Reserved for internal use.
java.lang.ObjectgetDirectParaAttr(int key)→ inherited from Style
          Reserved for internal use.
intgetDirectParaAttrsCount()→ inherited from Style
          Reserved for internal use.
intgetDirectParaKey(int index)→ inherited from Style
          Reserved for internal use.
java.lang.ObjectgetDirectRowAttr(int key)
          Reserved for internal use.
java.lang.ObjectgetDirectRunAttr(int key)→ inherited from Style
          Reserved for internal use.
intgetDirectRunAttrsCount()→ inherited from Style
          Reserved for internal use.
voidremove()→ inherited from Style
           Removes the specified style from the document.
voidremoveParaAttr(int key)→ inherited from Style
          Reserved for internal use.
voidremoveRunAttr(int key)→ inherited from Style
          Reserved for internal use.
voidresetToDefaultAttrs()
          Reserved for internal use.
voidsetCellAttr(int key, java.lang.Object value)
          Reserved for internal use.
voidsetParaAttr(int key, java.lang.Object value)→ inherited from Style
          Reserved for internal use.
voidsetRowAttr(int key, java.lang.Object value)
          Reserved for internal use.
voidsetRunAttr(int key, java.lang.Object value)→ inherited from Style
          Reserved for internal use.
 

Property Getters/Setters Detail

getAliases

→ inherited from Style
public java.lang.String[] getAliases()
Gets all aliases of this style. If style has no aliases then empty array of string is returned.

getBaseStyleName/setBaseStyleName

→ inherited from Style
public java.lang.String getBaseStyleName() / public void setBaseStyleName(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.

getBuiltIn

→ inherited from Style
public boolean getBuiltIn()
True if this style is one of the built-in styles in MS Word.

getDocument

→ inherited from Style
public DocumentBase getDocument()
Gets the owner document.

getFont

→ inherited from Style
public Font getFont()
Gets the character formatting of the style.

For list styles this property returns null.


isHeading

→ inherited from Style
public boolean isHeading()
True when the style is one of the built-in Heading styles.

isQuickStyle/isQuickStyle

→ inherited from Style
public boolean isQuickStyle() / public void isQuickStyle(boolean value)
Specifies whether this style is shown in the Quick Style gallery inside MS Word UI.

getLinkedStyleName

→ inherited from Style
public java.lang.String getLinkedStyleName()
Gets the name of the Style linked to this one. Returns Empty string if no styles are linked.

getList

→ inherited from Style
public Aspose.Words.Lists.List getList()
Gets the list that defines formatting of this list style.

This property is only valid for list styles. For other style types this property returns null.


getListFormat

→ inherited from Style
public ListFormat getListFormat()
Provides access to the list formatting properties of a paragraph style.

This property is only valid for paragraph styles. For other style types this property returns null.


getName/setName

→ inherited from Style
public java.lang.String getName() / public void setName(java.lang.String value)
Gets or sets the name of the style.

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

→ inherited from Style
public java.lang.String getNextParagraphStyleName() / public 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. 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.

getParagraphFormat

→ inherited from Style
public ParagraphFormat getParagraphFormat()
Gets the paragraph formatting of the style.

For character and list styles this property returns null.


getStyleIdentifier

→ inherited from Style
public int getStyleIdentifier()
Gets the locale independent style identifier for a built-in style. The value of the property is StyleIdentifier integer constant.

For user defined (custom) styles, this property returns StyleIdentifier.USER.

See Also:
Name

getStyles

→ inherited from Style
public StyleCollection getStyles()
Gets the collection of styles this style belongs to.

getType

→ inherited from Style
public int getType()
Gets the style type (paragraph or character). The value of the property is StyleType integer constant.

Method Detail

clearCellAttrs

public void clearCellAttrs()

clearParaAttrs

→ inherited from Style
public void clearParaAttrs()
Reserved for internal use.

clearRowAttrs

public void clearRowAttrs()
Reserved for internal use.

clearRunAttrs

→ inherited from Style
public void clearRunAttrs()
Reserved for internal use.

fetchCellAttr

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

fetchInheritedCellAttr

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

fetchInheritedParaAttr

→ inherited from Style
public java.lang.Object fetchInheritedParaAttr(int key)
Reserved for internal use.

fetchInheritedRowAttr

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

fetchInheritedRunAttr

→ inherited from Style
public java.lang.Object fetchInheritedRunAttr(int key)
Reserved for internal use.

fetchParaAttr

→ inherited from Style
public java.lang.Object fetchParaAttr(int key)
Reserved for internal use.

fetchRowAttr

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

getDirectCellAttr

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

getDirectParaAttr

→ inherited from Style
public java.lang.Object getDirectParaAttr(int key)
Reserved for internal use.

getDirectParaAttrsCount

→ inherited from Style
public int getDirectParaAttrsCount()
Reserved for internal use.

getDirectParaKey

→ inherited from Style
public int getDirectParaKey(int index)
Reserved for internal use.

getDirectRowAttr

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

getDirectRunAttr

→ inherited from Style
public java.lang.Object getDirectRunAttr(int key)
Reserved for internal use.

getDirectRunAttrsCount

→ inherited from Style
public int getDirectRunAttrsCount()
Reserved for internal use.

remove

→ inherited from Style
public void remove()
Removes the specified style from the document. Style removal has following effects on the document model:
  • All references to the style are removed from corresponding paragraphs, runs and tables.
  • If base style is removed its formatting is moved to child styles.
  • If style to be deleted has a linked style, then both of these are deleted.

removeParaAttr

→ inherited from Style
public void removeParaAttr(int key)
Reserved for internal use.

removeRunAttr

→ inherited from Style
public void removeRunAttr(int key)
Reserved for internal use.

resetToDefaultAttrs

public void resetToDefaultAttrs()
Reserved for internal use.

setCellAttr

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

setParaAttr

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

setRowAttr

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

setRunAttr

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

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.