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