Click or drag to resize

TableStyle Class

Represents a style which can be applied to one or more Tables within a document content.
Inheritance Hierarchy

Namespace:  GemBox.Document.Tables
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public sealed class TableStyle : Style

The TableStyle type exposes the following members.

Public methodTableStyle
Initializes a new instance of the TableStyle class.
Public propertyBaseStyle
Gets or sets the style on which this style is based.
Public propertyCellFormat
Gets or sets the table cell format.
Public propertyCharacterFormat
Gets or sets the character format.
Public propertyConditionalFormats
Gets a collection of conditional TableStyleFormats.
Public propertyDocument
Gets the owner document.
(Overrides StyleDocument.)
Public propertyName
Gets or sets the name of the style.
(Inherited from Style.)
Public propertyParagraphFormat
Gets or sets the paragraph format.
Public propertyRowFormat
Gets or sets the table row format.
Public propertyStyleType
Gets the type of the style.
(Overrides StyleStyleType.)
Public propertyTableFormat
Gets or sets the table format.
Public methodToString
Returns a String that represents this Style instance.
(Inherited from Style.)

Styles provide a way to format your document in a consistent way so when you change your formatting options on a style, all document elements referencing that style will be changed.

To apply a TableStyle to a Table, set it to a TableFormat.Style property on a Table.TableFormat.

For more information about table styles, see table styles article and table styles example.

See Also