[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.TableFormatBase

Class TableFormatBase

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

Represents base formatting for a table.

public class TableFormatBase : FormattingBag
Inheritance
object
TableFormatBase
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Alignment

Gets or sets how the table is aligned in the document.

public TableAlignment Alignment { get; set; }

Property Value

TableAlignment

AllowAutoFit

Gets or sets a value indicating whether automatically resizing cells in a table to fit their contents is allowed.

public bool AllowAutoFit { get; set; }

Property Value

bool

BaseKey

Gets the base (this class) key for formatting properties.

protected override string BaseKey { get; }

Property Value

string

Borders

Gets the table borders formatting.

public TableBorderCollection Borders { get; }

Property Value

TableBorderCollection

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

PreferredWidth

Gets the table preferred width.

public PreferredWidth PreferredWidth { get; }

Property Value

PreferredWidth

Shading

Gets the shading that shall be applied to the extents of the current 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

StyleOptions

Gets or sets the bit flags that specify how a table style is applied to this table.

public TableStyleOptions StyleOptions { get; set; }

Property Value

TableStyleOptions

Methods

ClearFormatting()

Resets to default table formatting.

public override void ClearFormatting()

SetAlignment(TableAlignment)

Sets how the table is aligned in the document.

protected virtual void SetAlignment(TableAlignment value)

Parameters

value TableAlignment

The TableAlignment value.