Sheets class

Office 2013 and later

Defines the Sheets Class. When the object is serialized out as xml, its qualified name is x:sheets.

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

public class Sheets : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

sheets (Sheets)

This element represents the collection of sheets in the workbook. There are different types of sheets you can create in SpreadsheetML. The most common sheet type is a worksheet; also called a spreadsheet. A worksheet is the primary document that you use in SpreadsheetML to store and work with data. A worksheet consists of cells that are organized into columns and rows.

Some workbooks might have a modular design where there is one sheet for data and another worksheet for each specific analysis performed on that data. In a complex modular system, you might have dozens of sheets, each dedicated to a specific task.


  <sheet name="Sheet1" sheetId="1" r:id="rId1"/>
  <sheet name="Sheet2" sheetId="2" r:id="rId2"/>
  <sheet name="Sheet5" sheetId="3" r:id="rId3"/>
  <sheet name="Chart1" sheetId="4" type="chartsheet" r:id="rId4"/>

end example]

Parent Elements

workbook (§18.2.27)

Child Elements


sheet (Sheet Information)


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

© ISO/IEC29500: 2008.

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