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
| Name | Type | Access | Description |
|---|---|---|---|
AllowBreakAcrossPages | bool | Read/Write | Gets or sets a flag indicating whether text in a table row is allowed to split across a page break. |
Borders | BorderCollection | Read | Gets the collection of default cell borders for the style. |
LeftPadding | double | Read/Write | Gets or sets the amount of space (in points) to add to the left of the contents of table cells. |
RightPadding | double | Read/Write | Gets or sets the amount of space (in points) to add to the right of the contents of table cells. |
TopPadding | double | Read/Write | Gets or sets the amount of space (in points) to add above the contents of table cells. |
BottomPadding | double | Read/Write | Gets or sets the amount of space (in points) to add below the contents of table cells. |
Alignment | TableAlignment | Read/Write | Specifies the alignment for the table style. |
CellSpacing | double | Read/Write | Gets or sets the amount of space (in points) between the cells. |
LeftIndent | double | Read/Write | Gets or sets the value that represents the left indent of a table. |
Shading | Shading | Read | Gets a Shading object that refers to the shading formatting for table cells. |
VerticalAlignment | CellVerticalAlignment | Read/Write | Specifies the vertical alignment for the cells. |
RowStripe | int | Read/Write | Gets or sets a number of rows to include in the banding when the style specifies odd/even row banding. |
ColumnStripe | int | Read/Write | Gets or sets a number of columns to include in the banding when the style specifies odd/even columns banding. |
ConditionalStyles | ConditionalStyleCollection | Read | Collection of conditional styles that may be defined for this table style. |
Name | string | Read/Write | Gets or sets the name of the style. |
StyleIdentifier | StyleIdentifier | Read | Gets the locale independent style identifier for a built-in style. |
Aliases | string[] | Read | Gets all aliases of this style. |
IsHeading | bool | Read | True when the style is one of the built-in Heading styles. |
Type | StyleType | Read | Gets the style type (paragraph or character). |
Document | DocumentBase | Read | Gets the owner document. |
LinkedStyleName | string | Read/Write | Gets/sets the name of the Style linked to this one. |
BaseStyleName | string | Read/Write | Gets/sets the name of the style this style is based on. |
NextParagraphStyleName | string | Read/Write | Gets/sets the name of the style to be applied automatically to a new paragraph inserted after a paragraph formatted with the specified style. |
BuiltIn | bool | Read | True if this style is one of the built-in styles in MS Word. |
Font | Font | Read | Gets the character formatting of the style. |
ParagraphFormat | ParagraphFormat | Read | Gets the paragraph formatting of the style. |
SemiHidden | bool | Read/Write | Gets/sets whether the style hides from the Styles gallery and from the Styles task pane. |
UnhideWhenUsed | bool | Read/Write | Gets/sets whether the style used in the current document unhides from the Styles gallery and from the Styles task pane. |
Priority | int | Read/Write | Gets/sets the integer value that represents the priority for sorting the styles in the Styles task pane. |
List | List | Read | Gets the list that defines formatting of this list style. |
ListFormat | ListFormat | Read | Provides access to the list formatting properties of a paragraph style. |
IsQuickStyle | bool | Read/Write | Specifies whether this style is shown in the Quick Style gallery inside MS Word UI. |
AutomaticallyUpdate | bool | Read/Write | Specifies whether this style is automatically redefined based on the appropriate value. |
Locked | bool | Read/Write | Specifies whether this style is locked. |
Styles | StyleCollection | Read | Gets the collection of styles this style belongs to. |
Methods
| Signature | Description |
|---|---|
Remove() | Removes the specified style from the document. |
Equals(style: Style) | Compares with the specified style. |