TableStyle Class
Represents a style which can be applied to one or more Tables within a presentation content.
public sealed class TableStyle : IEnumerable<TablePartStyle>, IEnumerable
Public NotInheritable Class TableStyle
Implements IEnumerable(Of TablePartStyle), IEnumerable
- Inheritance:
- System.ObjectTableStyle
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.
public TableBackground Background { get; }
Public ReadOnly Property Background As TableBackground
Property Value
The table background.
Item[TablePartStyleType]
Gets the TablePartStyle that corresponds to given part style type.
public TablePartStyle this[TablePartStyleType type] { get; }
Public ReadOnly Property Item(type As TablePartStyleType) As TablePartStyle
Parameters
The part style type of the TablePartStyle.
Property Value
The TablePartStyle that corresponds to given part style type.
Name
Gets or sets the name of the style.
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.
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.