Share via


CellStyle Constructors

Definition

Overloads

CellStyle()

Initializes a new instance of the CellStyle class.

CellStyle(OpenXmlElement[])

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

CellStyle(IEnumerable<OpenXmlElement>)

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

CellStyle(String)

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

CellStyle()

Initializes a new instance of the CellStyle class.

public CellStyle ();
Public Sub New ()

Applies to

CellStyle(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

CellStyle(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

CellStyle(String)

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

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

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to