Styles Constructors

Definition

Overloads

Styles()

Initializes a new instance of the Styles class.

Styles(OpenXmlElement[])

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

Styles(IEnumerable<OpenXmlElement>)

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

Styles(String)

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

Styles()

Initializes a new instance of the Styles class.

public Styles ();
Public Sub New ()

Applies to

Styles(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Styles(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Styles(String)

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

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

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to