Columns.ColumnCount Property

Definition

Number of Equal Width Columns

Represents the following attribute in the schema: w:num

[DocumentFormat.OpenXml.SchemaAttr(23, "num")]
public DocumentFormat.OpenXml.Int16Value ColumnCount { get; set; }
public DocumentFormat.OpenXml.Int16Value ColumnCount { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "num")]
public DocumentFormat.OpenXml.Int16Value? ColumnCount { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:num")]
public DocumentFormat.OpenXml.Int16Value? ColumnCount { get; set; }
public DocumentFormat.OpenXml.Int16Value? ColumnCount { get; set; }
member this.ColumnCount : DocumentFormat.OpenXml.Int16Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "num")>]
member this.ColumnCount : DocumentFormat.OpenXml.Int16Value with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:num")>]
member this.ColumnCount : DocumentFormat.OpenXml.Int16Value with get, set
Public Property ColumnCount As Int16Value

Property Value

Returns Int32Value.

Attributes

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.

Applies to