Class TableShape
Represents a table shape on a slide.
Implements
Inherited Members
Namespace: DRIT.Presentation.Drawing
Assembly: DRIT.Presentation.dll
Syntax
public class TableShape : AbstractShape, IDrawingObject
Constructors
TableShape()
Initializes an empty table shape with live row and column collections.
Declaration
public TableShape()
Properties
ColumnWidthsEmu
Gets the widths (in EMU) of each column, in left-to-right order.
Declaration
public List<double> ColumnWidthsEmu { get; }
Property Value
| Type | Description |
|---|---|
| List<double> |
Columns
Gets a typed collection of columns with Add/Insert/
Remove ergonomics. This is a live view over
ColumnWidthsEmu.
Declaration
public TableColumnCollection Columns { get; }
Property Value
| Type | Description |
|---|---|
| TableColumnCollection |
Format
Gets formatting options for the table as a whole.
Declaration
public TableShapeFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| TableShapeFormat |
Rows
Gets the rows of the table, in top-to-bottom order.
Declaration
public List<TableRow> Rows { get; }
Property Value
| Type | Description |
|---|---|
| List<TableRow> |
StyleId
Gets or sets the GUID of the table style applied to this table. Corresponds to the style identifiers available in TableStylesInfo.
Declaration
public Guid? StyleId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Methods
SetStyle(TableStyleName)
Applies a named built-in table style.
Declaration
public void SetStyle(TableStyleName styleName)
Parameters
| Type | Name | Description |
|---|---|---|
| TableStyleName | styleName |