VegaRise.NET
Back to DOM

TableBaseStyleClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Common base class for table-level styles.

Remarks

centralizes styling properties that apply to entire tables (for example table shading, borders, margin and cell spacing). Properties are nullable where appropriate to allow callers to express "unspecified" so consumers can apply inheritance or document-default fallback rules. TableBaseStyle extends this class with table-layout controls (auto-fit, fixed layout, grid widths), while and extend it with row- and cell-level properties. TableStyle TableRowStyle TableCellStyle

Examples

csharp
1// 1. Configure table shading
2var style = new TableStyle
3{
4 Shading = new Shading { BackgroundColor = new Color("#F5F5F5") }
5};
6
csharp
1// 2. Configure borders
2var style = new TableStyle
3{
4 Borders = new TableBorder(BorderValues.single, Color.Black, new DocumentUnit(1, Units.pt))
5};
6
csharp
1// 3. Center-align the table with an explicit margin
2var style = new TableStyle
3{
4 Justification = TableJustificationValues.center,
5 Margin = new Margin(6, 6, 6, 6, Units.pt)
6};
7
csharp
1// 4. Cell spacing plus right-to-left layout
2var style = new TableStyle
3{
4 CellSpacing = new DocumentUnit(2, Units.pt),
5 RightToLeft = true
6};
7
csharp
1// 5. Hide the table mark (edit handle)
2var style = new TableStyle { HideMark = true };
3

Properties

Gets or sets the border configuration for the table.

CellSpacingDocumentUnit

Gets or sets the spacing between table cells.

HideMark

Gets or sets a value indicating whether the table mark (edit/visibility mark) should be hidden.

Gets or sets the horizontal justification applied to the table.

Margin

Gets or sets the margin (spacing) around the table.

RightToLeft

Gets or sets whether the table should use right-to-left layout.

Shading

Gets or sets shading (background fill) applied to the table area.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.