共用方式為


CustomXmlBlock Constructors

Definition

Overloads

CustomXmlBlock()

Initializes a new instance of the CustomXmlBlock class.

CustomXmlBlock(OpenXmlElement[])

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

CustomXmlBlock(IEnumerable<OpenXmlElement>)

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

CustomXmlBlock(String)

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

CustomXmlBlock()

Initializes a new instance of the CustomXmlBlock class.

public CustomXmlBlock ();
Public Sub New ()

Applies to

CustomXmlBlock(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

CustomXmlBlock(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

CustomXmlBlock(String)

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

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

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to