TableStyleColumnBandSize class

Office 2013 and later

Defines the TableStyleColumnBandSize Class. When the object is serialized out as xml, its qualified name is w:tblStyleColBandSize.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class TableStyleColumnBandSize : UnsignedDecimalNumberMax3Type

[ISO/IEC 29500-1 1st Edition]

tblStyleColBandSize (Number of Columns in Column Band)

This element specifies the number of columns which shall comprise each a table style column band for this table style. This element determines how many columns constitute each of the column bands for the current table, allowing column band formatting to be applied to groups of columns (rather than just single alternating columns) when the table is formatted.

If this element is omitted, then the default number of columns in a single column band shall be assumed to be 1.

[Example: Consider a table style defined as follows:

<w:style w:type="table" w:styleId="exampleTableStyle">
    <w:tblStyleRowBandSize w:val="3" /> 
    <w:tblStyleColBandSize w:val="2" /> 

The tblStyleColBandSize element specifies that the width of each column band must be 2 columns - therefore band1Vert column banding conditional formatting must be applied to columns 1 and 2, 5 and 6, etc. in the table. end example]

Parent Elements

tblPr (§17.4.60); tblPr (§17.4.59); tblPr (§; tblPr (§



val (Decimal Number Value)

Specifies that the contents of this attribute contains a decimal number.

The contents of this decimal number are interpreted based on the context of the parent XML element.

[Example: Consider the following numeric WordprocessingML property of simple type ST_DecimalNumber:

<… w:val="1512645511" />

The value of the val attribute is a decimal number whose value must be interpreted in the context of the parent element. end example]

The possible values for this attribute are defined by the ST_DecimalNumber simple type (§17.18.10).

[Note: The W3C XML Schema definition of this element’s content model (CT_DecimalNumber) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.