Columns.ColumnCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應