TableStyle

Overview

TableStyle is a class in Aspose.Words FOSS for .NET. Inherits from: Style, ICellAttrSource, IRowAttrSource, and 2 more.

Represents a table style.

This class provides 2 methods for working with TableStyle objects in .NET programs. Available methods include: Equals, Remove. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Aliases, Alignment, AllowBreakAcrossPages, AutomaticallyUpdate, BaseStyleName, Borders, and 29 more.

Properties

NameTypeAccessDescription
AllowBreakAcrossPagesboolRead/WriteGets or sets a flag indicating whether text in a table row is allowed to split across a page break.
BordersBorderCollectionReadGets the collection of default cell borders for the style.
LeftPaddingdoubleRead/WriteGets or sets the amount of space (in points) to add to the left of the contents of table cells.
RightPaddingdoubleRead/WriteGets or sets the amount of space (in points) to add to the right of the contents of table cells.
TopPaddingdoubleRead/WriteGets or sets the amount of space (in points) to add above the contents of table cells.
BottomPaddingdoubleRead/WriteGets or sets the amount of space (in points) to add below the contents of table cells.
AlignmentTableAlignmentRead/WriteSpecifies the alignment for the table style.
CellSpacingdoubleRead/WriteGets or sets the amount of space (in points) between the cells.
LeftIndentdoubleRead/WriteGets or sets the value that represents the left indent of a table.
ShadingShadingReadGets a Shading object that refers to the shading formatting for table cells.
VerticalAlignmentCellVerticalAlignmentRead/WriteSpecifies the vertical alignment for the cells.
RowStripeintRead/WriteGets or sets a number of rows to include in the banding when the style specifies odd/even row banding.
ColumnStripeintRead/WriteGets or sets a number of columns to include in the banding when the style specifies odd/even columns banding.
ConditionalStylesConditionalStyleCollectionReadCollection of conditional styles that may be defined for this table style.
NamestringRead/WriteGets or sets the name of the style.
StyleIdentifierStyleIdentifierReadGets the locale independent style identifier for a built-in style.
Aliasesstring[]ReadGets all aliases of this style.
IsHeadingboolReadTrue when the style is one of the built-in Heading styles.
TypeStyleTypeReadGets the style type (paragraph or character).
DocumentDocumentBaseReadGets the owner document.
LinkedStyleNamestringRead/WriteGets/sets the name of the Style linked to this one.
BaseStyleNamestringRead/WriteGets/sets the name of the style this style is based on.
NextParagraphStyleNamestringRead/WriteGets/sets the name of the style to be applied automatically to a new paragraph inserted after a paragraph formatted with the specified style.
BuiltInboolReadTrue if this style is one of the built-in styles in MS Word.
FontFontReadGets the character formatting of the style.
ParagraphFormatParagraphFormatReadGets the paragraph formatting of the style.
SemiHiddenboolRead/WriteGets/sets whether the style hides from the Styles gallery and from the Styles task pane.
UnhideWhenUsedboolRead/WriteGets/sets whether the style used in the current document unhides from the Styles gallery and from the Styles task pane.
PriorityintRead/WriteGets/sets the integer value that represents the priority for sorting the styles in the Styles task pane.
ListListReadGets the list that defines formatting of this list style.
ListFormatListFormatReadProvides access to the list formatting properties of a paragraph style.
IsQuickStyleboolRead/WriteSpecifies whether this style is shown in the Quick Style gallery inside MS Word UI.
AutomaticallyUpdateboolRead/WriteSpecifies whether this style is automatically redefined based on the appropriate value.
LockedboolRead/WriteSpecifies whether this style is locked.
StylesStyleCollectionReadGets the collection of styles this style belongs to.

Methods

SignatureDescription
Remove()Removes the specified style from the document.
Equals(style: Style)Compares with the specified style.

See Also