ProofState.Grammar Property

Definition

Grammatical Checking State

Represents the following attribute in the schema: w:grammar

[DocumentFormat.OpenXml.SchemaAttr(23, "grammar")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues> Grammar { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues> Grammar { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "grammar")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues>? Grammar { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:grammar")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues>? Grammar { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues>? Grammar { get; set; }
member this.Grammar : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "grammar")>]
member this.Grammar : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:grammar")>]
member this.Grammar : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.ProofingStateValues> with get, set
Public Property Grammar As EnumValue(Of ProofingStateValues)

Property Value

Returns EnumValue<T>.

Attributes

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.

Applies to