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

    Show / Hide Table of Contents

    TableStyle Class

    Namespace:
    GemBox.Presentation.Tables
    Assembly:
    GemBox.Presentation.dll

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

    • C#
    • VB.NET
    public sealed class TableStyle : IEnumerable<TablePartStyle>, IEnumerable
    Public NotInheritable Class TableStyle
        Implements IEnumerable(Of TablePartStyle), IEnumerable
    Inheritance:
    System.Object
    TableStyle
    Implements
    System.Collections.Generic.IEnumerable<TablePartStyle>
    System.Collections.IEnumerable
    Remarks

    Table styles provide a way to format your presentation in a consistent way so when you change your formatting options on a style, all presentation tables referencing that style will be changed.

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

    Properties

    Background

    Gets or sets the table background.

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

    The table background.

    Item[TablePartStyleType]

    Gets the TablePartStyle that corresponds to given part style type.

    • C#
    • VB.NET
    public TablePartStyle this[TablePartStyleType type] { get; }
    Public ReadOnly Property Item(type As TablePartStyleType) As TablePartStyle
    Parameters
    type
    TablePartStyleType

    The part style type of the TablePartStyle.

    Property Value
    TablePartStyle

    The TablePartStyle that corresponds to given part style type.

    Name

    Gets or sets the name of the style.

    • C#
    • VB.NET
    public string Name { get; set; }
    Public Property Name As String
    Property Value
    System.String

    The name.

    Exceptions
    System.InvalidOperationException

    The name of built-in table style cannot be modified if the style is contained in the presentation's table styles collection.

    System.ArgumentException

    Value is null or System.String.Empty.

    Methods

    GetEnumerator()

    Returns an enumerator that iterates through the collection of TablePartStyles.

    • C#
    • VB.NET
    public IEnumerator<TablePartStyle> GetEnumerator()
    Public Function GetEnumerator As IEnumerator(Of TablePartStyle)
    Returns
    System.Collections.Generic.IEnumerator<TablePartStyle>

    An System.Collections.Generic.IEnumerator<T> for the collection of TablePartStyles.

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.