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