VegaRise.NET
Back to DOM

TableCellStyleClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Represents styling applied to an individual table cell.

Remarks

extends with cell-specific properties such as column spanning, wrapping behaviour, vertical alignment and explicit width. Most properties are nullable so consumers can distinguish "unspecified" and apply inheritance or document-level defaults. TableCellStyle TableBaseStyle Cell styles are assigned via . TableCell.Style

Examples

csharp
1// 1. Center-aligned header cell
2var style = new TableCellStyle
3{
4 VerticalAlignment = TableVerticalAlignmentValues.Center,
5 Justification = TableJustificationValues.center
6};
7
csharp
1// 2. Merged header row (colspan)
2var style = new TableCellStyle { GridSpan = 3 };
3
csharp
1// 3. Fixed-width, non-wrapping cell
2var style = new TableCellStyle
3{
4 Width = new DocumentUnit(2.0, Units.inch),
5 NoWrap = true
6};
7
csharp
1// 4. Fit-to-cell for a compact numeric column
2var style = new TableCellStyle { FitText = true };
3
csharp
1// 5. Apply to a table cell
2var cell = new TableCell
3{
4 Style = new TableCellStyle { VerticalAlignment = TableVerticalAlignmentValues.Center }
5};
6cell.AddText("Centered");
7

Properties

ConditionalFormatStyle

Gets or sets conditional formatting flags that alter appearance based on table position.

FitText

Gets or sets whether the cell's text should be scaled to fit within the cell.

GridSpan

Gets or sets the number of columns this cell spans (equivalent to colspan).

NoWrap

Gets or sets whether text wrapping is disabled inside the cell.

TextDirectionTextDirectionValues

Gets or sets the text flow direction for content in the cell.

Gets or sets the vertical alignment of content within the cell.

Gets or sets the explicit width for the cell.

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.