Compartir a través de


Checked Class

Checkbox Form Field State.When the object is serialized out as xml, its qualified name is w:checked.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

[ISO/IEC 29500-1 1st Edition]

17.16.3 checked (Checkbox Form Field State)

This element specifies the current state for a checkbox form field. This value shall be used to specify the current value for a checkbox as explicitly chosen for that checkbox, as opposed its default value, which is specified using the default element (§17.16.12).

If this element is omitted, then the parent form field checkbox has no state, and its state shall be determined based on the value of the default element in the checkbox form field properties.

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

<w:ffData>
<w:checkBox>
…
<w:checked w:val="true" />
</w:checkBox>
</w:ffData>

The checked element specifies that the current state of the checkbox is checked (via an attribute value of true). 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

Checked Members

DocumentFormat.OpenXml.Wordprocessing Namespace