Class TableStyle (Word VBA)

The class TableStyle represents a single style that can be applied to a table.

The classes Range and Style. give access to class TableStyle


Dim tblsty as TableStyle
Set tblsty = ActiveDocument.Range.TableStyle

Methods

Condition - Returns a ConditionalStyle object that represents special style formatting for a portion of a table.

Properties

Alignment returns or sets a WdRowAlignment constant that represents the alignment for the specified table style.

AllowBreakAcrossPage sets or returns a Long indicating whether lines in the rows of tables formatted with a specified style break across pages.

AllowPageBreaks allows Microsoft Word to break the specified table across pages.

Borders returns a Borders collection that represents all the borders for the specified object.

BottomPadding returns or sets the amount of space (in points) to add below the contents of a single cell or all the cells in a table.

ColumnStripe returns or sets a Long that represents the number of columns in the banding when a style specifies odd- or even-column banding.

LeftIndent returns or sets a Single that represents the left indent value (in points) for the rows in the specified table style.

LeftPadding returns or sets the amount of space (in points) to add to the left of the contents of all the cells in a table.

RightPadding returns or sets the amount of space (in points) to add to the right of the contents of all the cells in a table.

RowStripe returns or sets a Long that represents the number of rows to include in the banding when a style specifies odd- or even-row banding.

Shading returns a Shading object that refers to the shading formatting for the specified table style.

Spacing returns or sets the spacing (in points) between the cells in a table style.

TableDirection returns or sets the direction in which Microsoft Word orders cells in the specified table style.

TopPadding returns or sets the amount of space (in points) to add above the contents of all the cells in a table.

Borders - A collection of Border objects that represent the borders of an object.

ConditionalStyle - Represents special formatting applied to specified areas of a table when the selected table is formatted with a specified table style.

Shading - Contains shading attributes for an object.