CustomXmlElement 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
| CustomXmlElement(OpenXmlElement[]) | Initializes a new instance of the CustomXmlElement class with the specified child elements. | 
| CustomXmlElement(IEnumerable<OpenXmlElement>) | Initializes a new instance of the CustomXmlElement class with the specified child elements. | 
| CustomXmlElement(String) | Initializes a new instance of the CustomXmlBlock class from outer XML. | 
CustomXmlElement(OpenXmlElement[])
Initializes a new instance of the CustomXmlElement class with the specified child elements.
protected CustomXmlElement(params DocumentFormat.OpenXml.OpenXmlElement[] childElements);new DocumentFormat.OpenXml.Wordprocessing.CustomXmlElement : DocumentFormat.OpenXml.OpenXmlElement[] -> DocumentFormat.OpenXml.Wordprocessing.CustomXmlElementProtected Sub New (ParamArray childElements As OpenXmlElement())Parameters
- childElements
- OpenXmlElement[]
Specifies the child elements.
Applies to
CustomXmlElement(IEnumerable<OpenXmlElement>)
Initializes a new instance of the CustomXmlElement class with the specified child elements.
protected CustomXmlElement(System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement> childElements);new DocumentFormat.OpenXml.Wordprocessing.CustomXmlElement : seq<DocumentFormat.OpenXml.OpenXmlElement> -> DocumentFormat.OpenXml.Wordprocessing.CustomXmlElementProtected Sub New (childElements As IEnumerable(Of OpenXmlElement))Parameters
- childElements
- IEnumerable<OpenXmlElement>
Specifies the child elements.
Applies to
CustomXmlElement(String)
Initializes a new instance of the CustomXmlBlock class from outer XML.
protected CustomXmlElement(string outerXml);new DocumentFormat.OpenXml.Wordprocessing.CustomXmlElement : string -> DocumentFormat.OpenXml.Wordprocessing.CustomXmlElementProtected Sub New (outerXml As String)Parameters
- outerXml
- String
Specifies the outer XML of the element.