Share via


StatusText.Val Property

Status Text Value.Represents the attribte in schema: w:val

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

Syntax

'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As StringValue
    Get
    Set
'Usage
Dim instance As StatusText
Dim value As StringValue

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public StringValue Val { 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 status text for the current form field. Based on the value of the type attribute, the contents of this field shall be interpreted as follows:

  • When the type attribute value is text, it contains the literal status text for the form field.

  • When the type attribute value is autoText, it contains the name of a glossary document entry which contains the status text for the form field.

Consider the following WordprocessingML fragment for a form field:

<w:ffData>
  <w:statusText w:type="autoText" w:val="MyStatusText" />
</w:ffData>

The text in the val attribute is the name of a glossary document entry containing the status text for this form field, since the type attribute has a value of autoText.

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

See Also

Reference

StatusText Class

StatusText Members

DocumentFormat.OpenXml.Wordprocessing Namespace