Share via


Worksheet Constructors

Definition

Overloads

Worksheet()

Initializes a new instance of the Worksheet class.

Worksheet(OpenXmlElement[])

Initializes a new instance of the Worksheet class with the specified child elements.

Worksheet(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Worksheet class with the specified child elements.

Worksheet(String)

Initializes a new instance of the Worksheet class from outer XML.

Worksheet()

Initializes a new instance of the Worksheet class.

public Worksheet ();
Public Sub New ()

Applies to

Worksheet(OpenXmlElement[])

Initializes a new instance of the Worksheet class with the specified child elements.

public Worksheet (params DocumentFormat.OpenXml.OpenXmlElement[] childElements);
new DocumentFormat.OpenXml.Spreadsheet.Worksheet : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Spreadsheet.Worksheet
Public Sub New (ParamArray childElements As OpenXmlElement())

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Worksheet(IEnumerable<OpenXmlElement>)

Initializes a new instance of the Worksheet class with the specified child elements.

public Worksheet (System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);
new DocumentFormat.OpenXml.Spreadsheet.Worksheet : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Spreadsheet.Worksheet
Public Sub New (childElements As IEnumerable(Of OpenXmlElement))

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Worksheet(String)

Initializes a new instance of the Worksheet class from outer XML.

public Worksheet (string outerXml);
new DocumentFormat.OpenXml.Spreadsheet.Worksheet : string -> DocumentFormat.OpenXml.Spreadsheet.Worksheet
Public Sub New (outerXml As String)

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to