Share via


SdtContentBlock Constructors

Definition

Overloads

SdtContentBlock()

Initializes a new instance of the SdtContentBlock class.

SdtContentBlock(OpenXmlElement[])

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

SdtContentBlock(IEnumerable<OpenXmlElement>)

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

SdtContentBlock(String)

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

SdtContentBlock()

Initializes a new instance of the SdtContentBlock class.

public SdtContentBlock ();
Public Sub New ()

Applies to

SdtContentBlock(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

SdtContentBlock(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

SdtContentBlock(String)

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

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

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to