[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.TableStyleBase

Class TableStyleBase

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents base properties that can be applied to a table.

public class TableStyleBase : FormattingBag
Inheritance
TableStyleBase
Derived
Inherited Members

Properties

Alignment

Gets or sets the alignment of an inline table in the document.

public TableAlignment Alignment { get; set; }

Property Value

TableAlignment

AllowBreakAcrossPages

Gets or sets a value indicating whether the content within the cells can be rendered on multiple pages.

public bool AllowBreakAcrossPages { get; set; }

Property Value

bool

Remarks

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.

HeadingFormat

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; }

Property Value

bool

Indent

Gets or sets the indentation (in points) that shall be added before the leading edge of the current table.

public float Indent { get; set; }

Property Value

float

Padding

Gets the default paddings for all cells in the current table.

public CellPadding Padding { get; }

Property Value

CellPadding

Shading

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; }

Property Value

Shading

Spacing

Gets or sets the default amount of space (in points) between the cells.

public float Spacing { get; set; }

Property Value

float

VerticalAlignment

Gets or sets the vertical alignment of text in cells.

public CellVerticalAlignment VerticalAlignment { get; set; }

Property Value

CellVerticalAlignment

WordWrap

Gets or sets whether to wrap text in the cells.

public bool WordWrap { get; set; }

Property Value

bool

Methods

ClearFormatting()

Resets to default table style formatting.

public override void ClearFormatting()

CopyFormatting(TableStyleBase)

Copies formmating from this instance into another.

protected void CopyFormatting(TableStyleBase tableStyle)

Parameters

tableStyle TableStyleBase

A TableStyleBase to copy formatting to.