SmartTagRun.Element Property

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

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

Syntax

'Declaration
<SchemaAttrAttribute(, "element")> _
Public Property Element As StringValue
    Get
    Set
'Usage
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.

Remarks

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" … >
  …
</w:customXml>

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

Reference

SmartTagRun Class

SmartTagRun Members

DocumentFormat.OpenXml.Wordprocessing Namespace