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

    Show / Hide Table of Contents

    TableStyleFormat Class

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

    Represents a set of table style conditional formatting properties.

    These properties affect the appearance of all rows, cells, paragraphs and runs within the parent table matching the specified condition, but may be overridden by individual row, cell, paragraph and run level formats.

    • C#
    • VB.NET
    public sealed class TableStyleFormat : Format
    Public NotInheritable Class TableStyleFormat
        Inherits Format
    Inheritance:
    System.Object
    Format
    TableStyleFormat
    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.

    Constructors

    TableStyleFormat(TableStyleFormatType)

    Initializes a new instance of the TableStyleFormat class.

    • C#
    • VB.NET
    public TableStyleFormat(TableStyleFormatType formatType)
    Public Sub New(formatType As TableStyleFormatType)
    Parameters
    formatType
    TableStyleFormatType

    The table style conditional format type.

    Remarks

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

    Properties

    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.

    Document

    Gets the owner document.

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

    The owner document.

    FormatType

    Gets the table style conditional format type.

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

    The table style conditional format type.

    Remarks

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

    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.

    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.

    Methods

    ClearFormatting()

    Clears the formatting.

    • C#
    • VB.NET
    public override void ClearFormatting()
    Public Overrides Sub ClearFormatting
    Overrides
    Format.ClearFormatting()
    Remarks

    This method will clear all directly set formatting values. When retrieving formatting value, they can still come from other sources, as explained in formats and styles article.

    Examples

    Table styles example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.