w:tblLook (Table Style Conditional Formats)
Controls which conditional formatting sections of the table style are applied (first row, last column, banding, etc.).
Parent elements
Description
w:tblLook specifies which conditional format zones of a table style are applied. It is defined in ECMA-376 Part 1 §17.4.56.
Table styles define up to six conditional format bands (first/last row, first/last column, banded rows, banded columns). w:tblLook acts as a set of on/off flags controlling which of these bands are active for the specific table.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_ShortHexNumber |
Hex bitmask (e.g. 04A0). Each bit enables a conditional format zone. |
Combined bitmask (legacy). Prefer individual boolean attributes below. |
w:firstRow |
ST_OnOff |
true / false |
Apply first-row conditional formatting. |
w:lastRow |
ST_OnOff |
true / false |
Apply last-row conditional formatting. |
w:firstColumn |
ST_OnOff |
true / false |
Apply first-column conditional formatting. |
w:lastColumn |
ST_OnOff |
true / false |
Apply last-column conditional formatting. |
w:noHBand |
ST_OnOff |
true / false |
Suppress horizontal banding. |
w:noVBand |
ST_OnOff |
true / false |
Suppress vertical banding. |
Examples
<w:tblLook w:val="04A0"
w:firstRow="1" w:lastRow="0"
w:firstColumn="1" w:lastColumn="0"
w:noHBand="0" w:noVBand="1"/>
new TableLook
{
Val = "04A0",
FirstRow = true,
LastRow = false,
FirstColumn = true,
LastColumn = false,
NoHorizontalBand = false,
NoVerticalBand = true
};