Export (0) Print
Expand All

AutomaticallySizeFormField class

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

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

public class AutomaticallySizeFormField : OnOffType

[ISO/IEC 29500-1 1st Edition]

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.

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

Community Additions

Show:
© 2014 Microsoft