GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    TableStyle Class

    Namespace:
    GemBox.Document.Tables
    Assembly:
    GemBox.Document.dll

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

    • C#
    • VB.NET
    public sealed class TableStyle : Style
    Public NotInheritable Class TableStyle
        Inherits Style
    Inheritance:
    System.Object
    Style
    TableStyle
    Remarks

    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 Style property on a TableFormat.

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

    Constructors

    TableStyle(String)

    Initializes a new instance of the TableStyle class.

    • C#
    • VB.NET
    public TableStyle(string name)
    Public Sub New(name As String)
    Parameters
    name
    System.String

    The style name.

    Properties

    BaseStyle

    Gets or sets the style on which this style is based.

    • C#
    • VB.NET
    public TableStyle BaseStyle { get; set; }
    Public Property BaseStyle As TableStyle
    Property Value
    TableStyle

    The base style.

    CellFormat

    Gets or sets the table cell format.

    • C#
    • VB.NET
    public TableCellFormat CellFormat { get; set; }
    Public Property CellFormat As TableCellFormat
    Property Value
    TableCellFormat

    The table cell format.

    CharacterFormat

    Gets or sets the character format.

    • C#
    • VB.NET
    public CharacterFormat CharacterFormat { get; set; }
    Public Property CharacterFormat As CharacterFormat
    Property Value
    CharacterFormat

    The character format.

    ConditionalFormats

    Gets a collection of conditional TableStyleFormats.

    • C#
    • VB.NET
    public TableStyleFormatCollection ConditionalFormats { get; }
    Public ReadOnly Property ConditionalFormats As TableStyleFormatCollection
    Property Value
    TableStyleFormatCollection

    A collection of conditional TableStyleFormats.

    Remarks

    Table style conditional formats are applied to different regions of the table and allow you to define all formatting properties (formatting for a table, rows, cells, paragraphs and runs).

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

    Document

    Gets the owner document.

    • C#
    • VB.NET
    public override DocumentModel Document { get; protected set; }
    Public Overrides Property Document As DocumentModel
    Property Value
    DocumentModel

    The owner document.

    Overrides
    Style.Document

    ParagraphFormat

    Gets or sets the paragraph format.

    • C#
    • VB.NET
    public ParagraphFormat ParagraphFormat { get; set; }
    Public Property ParagraphFormat As ParagraphFormat
    Property Value
    ParagraphFormat

    The paragraph format.

    RowFormat

    Gets or sets the table row format.

    • C#
    • VB.NET
    public TableRowFormat RowFormat { get; set; }
    Public Property RowFormat As TableRowFormat
    Property Value
    TableRowFormat

    The table row format.

    StyleType

    Gets the type of the style.

    • C#
    • VB.NET
    public override StyleType StyleType { get; }
    Public Overrides ReadOnly Property StyleType As StyleType
    Property Value
    StyleType

    The type of the style.

    Overrides
    Style.StyleType

    TableFormat

    Gets or sets the table format.

    • C#
    • VB.NET
    public TableFormat TableFormat { get; set; }
    Public Property TableFormat As TableFormat
    Property Value
    TableFormat

    The table format.

    Inherited Properties

    Name

    Gets or sets the name of the style.

    (Inherited from Style)

    Inherited Methods

    CreateStyle(StyleTemplateType, DocumentModel)

    Creates one of the predefined styles.

    (Inherited from Style)

    ToString()

    Returns a System.String that represents this Style instance.

    (Inherited from Style)

    Examples

    Table styles example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.