Columns.ColumnCount Property
Number of Equal Width Columns.Represents the attribte in schema: w:num
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "num")> _
Public Property ColumnCount As Int16Value
Get
Set
'Usage
Dim instance As Columns
Dim value As Int16Value
value = instance.ColumnCount
instance.ColumnCount = value
[SchemaAttrAttribute(, "num")]
public Int16Value ColumnCount { get; set; }
Property Value
Type: DocumentFormat.OpenXml.Int16Value
Returns Int32Value.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the number of text columns in the current section.
If all the columns are not of equal width (the equalWidth attribute is not set), then this element is ignored, and the number of columns is defined by the number of col elements defined under the cols element.
Consider a section with column information defined as follows:
<w:cols w:num="3" w:space="1440"
w:equalWidth="1">
…
</w:cols>
This set of columns has an equalWidth value set to 1. Therefore, there are three equally sized columns because the num attribute has a value of 3.
The possible values for this attribute are defined by the ST_DecimalNumber simple type.