VegaRise.NET
Back to DOM

ConditionalFormatStyleClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Represents conditional formatting flags for table styles.

Remarks

is a simple container of nullable boolean flags that indicate which special formatting cases should be applied to table rows and columns (for example banding, first/last row or column styling, and corner-specific formatting). Nullable booleans allow callers to differentiate between "not specified" () and an explicit / decision. ConditionalFormatStyle null true false The flags follow WordprocessingML's table conditional formatting model and are consumed by the layout engine when applying a to a table. TableStyle

Examples

csharp
1// 1. Header row + alternating rows
2var conditional = new ConditionalFormatStyle
3{
4 firstRow = true,
5 oddHBand = true
6};
7
csharp
1// 2. Header + totals row (footer) + first column emphasis
2var conditional = new ConditionalFormatStyle
3{
4 firstRow = true,
5 lastRow = true,
6 firstColumn = true
7};
8
csharp
1// 3. Banded columns instead of rows
2var conditional = new ConditionalFormatStyle
3{
4 oddVBand = true,
5 evenVBand = false
6};
7
csharp
1// 4. Highlight all four corner cells
2var conditional = new ConditionalFormatStyle
3{
4 firstRowFirstColumn = true,
5 firstRowLastColumn = true,
6 lastRowFirstColumn = true,
7 lastRowLastColumn = true
8};
9
csharp
1// 5. Explicitly disable banding that would otherwise be inherited
2var conditional = new ConditionalFormatStyle
3{
4 oddHBand = false,
5 evenHBand = false
6};
7

Properties

evenHBand

Gets or sets a value indicating whether even horizontal bands (every other row) should receive alternate formatting.

evenVBand

Gets or sets a value indicating whether even vertical bands (every other column) should receive alternate formatting.

firstColumn

Gets or sets a value indicating whether the first column of the table should use the special "first column" formatting.

firstRow

Gets or sets a value indicating whether the first row of the table should use the special "first row" formatting.

firstRowFirstColumn

Gets or sets a value indicating whether the corner cell at the first row and first column should use special formatting.

firstRowLastColumn

Gets or sets a value indicating whether the corner cell at the first row and last column should use special formatting (useful for header/footer corner treatments).

lastColumn

Gets or sets a value indicating whether the last column of the table should use the special "last column" formatting.

lastRow

Gets or sets a value indicating whether the last row of the table should use the special "last row" formatting.

lastRowFirstColumn

Gets or sets a value indicating whether the corner cell at the last row and first column should use special formatting.

lastRowLastColumn

Gets or sets a value indicating whether the corner cell at the last row and last column should use special formatting.

oddHBand

Gets or sets a value indicating whether odd horizontal bands (every other row) should receive alternate formatting.

oddVBand

Gets or sets a value indicating whether odd vertical bands (every other column) should receive alternate formatting.

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.