[]
Represents base properties that can be applied to a table.
public class TableStyleBase : FormattingBag
Gets or sets the alignment of an inline table in the document.
public TableAlignment Alignment { get; set; }
Gets or sets a value indicating whether the content within the cells can be rendered on multiple pages.
public bool AllowBreakAcrossPages { get; set; }
When displaying the contents of a table cell, it is possible that a page break would fall within the contents of a table cell, causing the contents of that cell to be displayed across two different pages. If this property is false, then all contents of a table row shall be rendered on the same page by moving the start of the current row to the start of a new page if necessary. If the contents of this table row cannot fit on a single page, then this row shall start on a new page and flow onto multiple pages as necessary.
Gets or sets a value indicating whether a table row shall be repeated at the top of each new page on which part of this table is displayed. This gives this table row the behavior of a 'header' row on each of these pages.
public bool HeadingFormat { get; set; }
Gets or sets the indentation (in points) that shall be added before the leading edge of the current table.
public float Indent { get; set; }
Gets the default paddings for all cells in the current table.
public CellPadding Padding { get; }
Gets the shading that shall be applied to the extents of a table. Similarly to paragraph shading, this shading shall be applied to the contents of the tab up to the table borders, regardless of the presence of text - unlike cell shading, table shading shall include any cell padding. This property shall be superseded by any cell-level shading.
public Shading Shading { get; }
Gets or sets the default amount of space (in points) between the cells.
public float Spacing { get; set; }
Gets or sets the vertical alignment of text in cells.
public CellVerticalAlignment VerticalAlignment { get; set; }
Gets or sets whether to wrap text in the cells.
public bool WordWrap { get; set; }
Resets to default table style formatting.
public override void ClearFormatting()
Copies formmating from this instance into another.
protected void CopyFormatting(TableStyleBase tableStyle)
tableStyle
TableStyleBaseA TableStyleBase to copy formatting to.