Share via


Anchor Constructors

Definition

Overloads

Anchor()

Initializes a new instance of the Anchor class.

Anchor(OpenXmlElement[])

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

Anchor(IEnumerable<OpenXmlElement>)

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

Anchor(String)

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

Anchor()

Initializes a new instance of the Anchor class.

public Anchor ();
Public Sub New ()

Applies to

Anchor(OpenXmlElement[])

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

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

Parameters

childElements
OpenXmlElement[]

Specifies the child elements.

Applies to

Anchor(IEnumerable<OpenXmlElement>)

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

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

Parameters

childElements
IEnumerable<OpenXmlElement>

Specifies the child elements.

Applies to

Anchor(String)

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

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

Parameters

outerXml
String

Specifies the outer XML of the element.

Applies to