Enabled Class
Form Field Enabled.When the object is serialized out as xml, its qualified name is w:enabled.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.OnOffType
DocumentFormat.OpenXml.Wordprocessing.Enabled
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class Enabled _
Inherits OnOffType
'Usage
Dim instance As Enabled
public class Enabled : OnOffType
Remarks
[ISO/IEC 29500-1 1st Edition]
17.16.9 enabled (Form Field Enabled)
This element specifies whether the parent form field shall behave as though it is enabled or disabled when it is displayed in the document. This setting shall have no effect on the behavior of this form field unless the document's Settings part specifies that the documentProtection element for the current document is in a state allowing the filling in of form fields.
If this element is omitted, then the parent form field shall be in its enabled state when the document settings specify that the document allows the filling-in of form fields.
[Example: Consider the following WordprocessingML fragment for a text box form field:
<w:fldSimple w:instr="FORMTEXT"> <w:ffData> <w:enabled w:val="false"/> <w:textInput> … </w:textInput> </w:ffData> </w:fldSimple>
The enabled element specifies that the state of the current text box form field is disabled; therefore this text box must not be editable within the current document even when the state of the documentProtection element specifically allows the editing of form fields. end example]
Parent Elements |
---|
ffData (§17.16.17) |
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.