Compartir a través de


AutomaticallySizeFormField Class

Automatically Size Form Field.When the object is serialized out as xml, its qualified name is w:sizeAuto.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.AutomaticallySizeFormField

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

Syntax

'Declaration
Public Class AutomaticallySizeFormField _
    Inherits OnOffType
'Usage
Dim instance As AutomaticallySizeFormField
public class AutomaticallySizeFormField : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.16.25 sizeAuto (Automatically Size Form Field)

This element specifies that the parent checkbox form field shall be formatted using the point size which is applied to its field characters via the style hierarchy.

[Example: Consider the following WordprocessingML fragment for the properties of a checkbox form field:

<w:r>
<w:rPr>
<w:sz w:val="40"/>
</w:rPr>
<w:fldChar w:fldCharType="begin">
<w:ffData>
<w:checkBox>
<w:sizeAuto />
        <w:checked w:val="true" />
</w:checkBox>
</w:ffData>
</w:fldChar>
</w:r>

The sizeAuto element specifies that the checkbox must be displayed in the point size of the formatting which would normally be applied to this text via the style hierarchy. In this case, this size is the twenty points specified via the direct formatting on the parent run. end example]

Parent Elements

checkBox (§17.16.7)

This element’s content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

AutomaticallySizeFormField Members

DocumentFormat.OpenXml.Wordprocessing Namespace