TableStyle Interface

Definition

Represents a single style that can be applied to a table.

public interface class TableStyle
[System.Runtime.InteropServices.Guid("B7564E97-0519-4C68-B400-3803E7C63242")]
public interface TableStyle
type TableStyle = interface
Public Interface TableStyle
Attributes

Remarks

Use the Table property of the Style object to return a TableStyle object. Use the Borders property to apply borders to an entire table. Use the Condition(WdConditionCode) method to apply borders or shading only to specified sections of a table.

Properties

Alignment

Returns or sets a constant that represents the alignment for the specified rows.

AllowBreakAcrossPage

Sets or returns an Integer 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.

Application

Returns a Application object that represents the Microsoft Word application.

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 an Integer that represents the number of columns in the banding when a style specifies odd- or even-column banding.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

LeftIndent

Returns or sets a Single that represents the left indent value (in points) for 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 style.

Parent

Returns an object that represents the parent object of the specified object.

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 style.

RowStripe

Returns or sets an Integer 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 object.

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 or row.

TopPadding

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

Methods

Condition(WdConditionCode)

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

Applies to