Export (0) Print
Expand All

SelectFieldWithFirstOrLastChar class

Select Field When First or Last Character Is Selected. When the object is serialized out as xml, its qualified name is w:selectFldWithFirstOrLastChar.

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

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

public class SelectFieldWithFirstOrLastChar : OnOffType

[ISO/IEC 29500-1 1st Edition]

selectFldWithFirstOrLastChar (Select Field When First or Last Character Is Selected)

This element specifies whether applications should automatically select the entire contents of a field in a WordprocessingML document when the first or last character is selected.

Typically, users can select any character individually within the result of a field in the document. This element, when present with a val attribute value of true (or equivalent), specifies that selecting the first or last character of that field result shall automatically result in the selection of the entire field.

[Example: Consider a WordprocessingML document which contains the following (with a field marked in gray shading):

The default presentation would allow the first character of that field to be selected:

However, if this compatibility setting is turned on:

<w:compat>
  <w:selectFldWithFirstOrLastChar />
</w:compat>

Then that selection would automatically result in the entire field being selected, resulting in the following:

end example]

Parent Elements

compat (Part 1, §17.15.1.21)

This element’s content model is defined by the common boolean property definition in Part 1, §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.
Show:
© 2015 Microsoft