SheetDimension Class

Worksheet Dimensions.When the object is serialized out as xml, its qualified name is x:dimension.

Inheritance Hierarchy


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


Public Class SheetDimension _
    Inherits OpenXmlLeafElement
Dim instance As SheetDimension
public class SheetDimension : OpenXmlLeafElement


[ISO/IEC 29500-1 1st Edition] dimension (Worksheet Dimensions)

This element specifies the used range of the worksheet. It specifies the row and column bounds of used cells in the worksheet. This is optional and is not required. Used cells include cells with formulas, text content, and cell formatting. When an entire column is formatted, only the first cell in that column is considered used.


<dimension ref="A1:C2"/>

end example]

Parent Elements

worksheet (§



ref (Reference)

The row and column bounds of all cells in this worksheet. Corresponds to the range that would contain all c elements written under sheetData. Does not support whole column or whole row reference notation.

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

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also


SheetDimension Members

DocumentFormat.OpenXml.Spreadsheet Namespace