Description |
---|
Excerpt |
---|
The TableFormatting class is used to specify formatting that should be applied to a table. It also represents the table formatting of some named styles in the document. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}The [TableFormatting|TableFormatting] class is used to specify formatting that should be applied to a table. It also represents the table formatting of some named styles in the document.{excerpt}
{signature:C#}
public sealed class TableFormatting
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public NotInheritable Class TableFormatting
|
Remarks |
---|
There are two ways to obtain an instance of this class: Create a new normal table formatting object using Document.CreateTableFormatting(). This will return a copy of a particular style's table formatting. The The following example demonstrates both ways of getting table formatting, first by retrieving the NormalTable style's paragraph formatting from the document, second by retrieving a copy of the TableSimple1 style's paragraph formatting. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Properties |
---|
...
Name
...
Description
...
...
{code} {example} {properties} ||Name||Description|| |[AutoWidth|TableFormatting.AutoWidth]|{excerpt-include:TableFormatting.AutoWidth |
...
|nopanel=true}| |[CantSplit|TableFormatting.CantSplit]|{excerpt-include |
...
:TableFormatting.CantSplit |
...
|nopanel=true}| |[DefaultShading|TableFormatting.DefaultShading]|{excerpt-include |
...
:TableFormatting.DefaultShading |
...
|nopanel=true}| |[DefaultSpacing|TableFormatting.DefaultSpacing]|{excerpt-include |
...
:TableFormatting.DefaultSpacing |
...
|nopanel=true}| |[Justification|TableFormatting.Justification]|{excerpt-include |
...
:TableFormatting.Justification |
...
|nopanel=true}| |[LeftIndent|TableFormatting.LeftIndent]|{excerpt-include |
...
:TableFormatting.LeftIndent |
...
|nopanel=true}| |[RepeatAsHeader|TableFormatting.RepeatAsHeader]|{excerpt-include |
...
:TableFormatting.RepeatAsHeader |
...
Methods |
---|
...
Name
...
Description
|nopanel=true}| {methods} ||Name||Description|| |[GetDefaultBorder(Border.Location) |
...
|TableFormatting.GetDefaultBorder(Border.Location) |
...
]|{excerpt-include:TableFormatting.GetDefaultBorder(Border.Location) |
...
|nopanel |
...
=true}| |[GetDefaultPadding(TableCell.Location) |
...
|TableFormatting.GetDefaultPadding(TableCell.Location) |
...
]|{excerpt-include:TableFormatting.GetDefaultPadding(TableCell.Location) |
...
|nopanel |
...
=true}| |[SetDefaultPadding(TableCell.Location, Int32) |
...
|TableFormatting.SetDefaultPadding(TableCell.Location, Int32) |
...
]|{excerpt-include:TableFormatting.SetDefaultPadding(TableCell.Location, Int32) |
...
|nopanel |
...
=true}| |