[Table of Contents] [docx version]
WordprocessingML Reference Material - Table of Contents
maxLength (Text Box Form Field Maximum Length)
This element specifies the maximum length of text which should be allowed within the parent text box form field before any formatting specified by the format element (§2.16.22). If the current contents of this field exceed the specified value when the document is loaded, that violation shall not result in an error, but the application shall prevent the addition of any additional characters until the contents are brought below that limit.
If this element is omitted, then there shall be no limit on the number of characters in the parent text box form field.
[Example: Consider the following WordprocessingML fragment for the properties of a text box form field:
<w:ffData>
<w:textInput>
<w:type w:val="number" />
<w:maxLength w:val="4" />
<w:format w:val="0.00" />
</w:textInput>
</w:ffData>
The maxLength element specifies that the contents of this form field should not be allowed to exceed four characters when edited by an application. end example]
Parent Elements |
textInput (§2.16.33) |
Attributes |
Description |
val (Decimal Number Value) |
Specifies that the contents of this attribute will contain a decimal number.
The contents of this decimal number are interpreted based on the context of the parent XML element.
[Example: Consider the following numeric WordprocessingML property of type ST_DecimalNumber:
<w:… w:val="1512645511" /> The value of the val attribute is a decimal number whose value must be interpreted in the context of the parent element. end example]
The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_DecimalNumber">
<attribute name="val" type="ST_DecimalNumber" use="required"/>
</complexType>