Freigeben über


Columns-Klasse

Column Information.When the object is serialized out as xml, its qualified name is x:cols.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.Columns

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Column))> _
Public Class Columns _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Columns
[ChildElementInfoAttribute(typeof(Column))]
public class Columns : OpenXmlCompositeElement

Hinweise

The following table lists the possible child types:

  • Column <x:col>

[ISO/IEC 29500-1 1. Ausgabe]

18.3.1.17 cols (Column Information)

Information about whole columns of the worksheet.

[Example:

This example shows that column 4 (D) has 'best fit' applied to it, which is also a custom width. Also, column 5 (E) is listed as having a custom width and a style applied at the column level (as opposed to the cell level).

<cols>
<col min="4" max="4" width="12" bestFit="1" customWidth="1"/>
<col min="5" max="5" width="9.140625" style="3"/>
</cols>

end example]

Parent Elements

worksheet (§18.3.1.99)

Child Elements

Subclause

col (Column Width & Formatting)

§18.3.1.13

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

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

Columns-Member

DocumentFormat.OpenXml.Spreadsheet-Namespace