ProofState.Grammar Property
Grammatical Checking State.Represents the attribte in schema: w:grammar
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "grammar")> _
Public Property Grammar As EnumValue(Of ProofingStateValues)
Get
Set
'Usage
Dim instance As ProofState
Dim value As EnumValue(Of ProofingStateValues)
value = instance.Grammar
instance.Grammar = value
[SchemaAttrAttribute(, "grammar")]
public EnumValue<ProofingStateValues> Grammar { get; set; }
Property Value
Type: DocumentFormat.OpenXml.EnumValue<ProofingStateValues>
Returns EnumValue<T>.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies if an application's grammar checking engine completed checking the grammatical content of the document when it was last saved.
If this attribute is omitted, then its value is assumed to be dirty (not complete).
Consider a WordprocessingML document saved by a hosting application whose spelling and grammar checking engines have completed checking grammar and spelling in the given WordprocessingML document. This state is specified using the following WordprocessingML in the document settings:
<w:proofState w:spelling="clean" w:grammar="clean" />
The grammar attribute has the value clean specifying that the hosting application's grammar checking engine completed checking the grammar of the given document when it was last saved.
The possible values for this attribute are defined by the ST_Proof simple type.