SmartTagRun.Element Property

Smart Tag Name.Represents the attribte in schema: w:element

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)


<SchemaAttrAttribute(, "element")> _
Public Property Element As StringValue
Dim instance As SmartTagRun
Dim value As StringValue

value = instance.Element

instance.Element = value
[SchemaAttrAttribute(, "element")]
public StringValue Element { get; set; }

Property Value

Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.


The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the name of the current custom XML element or smart tag within the document.

Consider a custom XML element which shall have a name of companyName. This requirement would be specified using the following WordprocessingML:

<w:customXml w:element="companyName" … >

The element attribute specifies that the name for this element shall be companyName.

The possible values for this attribute are defined by the ST_String simple type.

See Also


SmartTagRun Class

SmartTagRun Members

DocumentFormat.OpenXml.Wordprocessing Namespace