CustomXmlBlock Constructors  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.CustomXmlBlockPublic 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.CustomXmlBlockPublic 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.CustomXmlBlockPublic Sub New (outerXml As String)Parameters
- outerXml
- String
Specifies the outer XML of the element.