DocGrid.Type Property

Document Grid Type.Represents the attribte in schema: w:type

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

Syntax

'Declaration
<SchemaAttrAttribute(, "type")> _
Public Property Type As EnumValue(Of DocGridValues)
    Get
    Set
'Usage
Dim instance As DocGrid
Dim value As EnumValue(Of DocGridValues)

value = instance.Type

instance.Type = value
[SchemaAttrAttribute(, "type")]
public EnumValue<DocGridValues> Type { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<DocGridValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the type of the current document grid, which defines the grid behavior.

The grid can define a grid which snaps all East Asian characters to grid positions, but leaves Latin text with its default spacing; a grid which adds the specified character pitch to each character on each row; or a grid which affects only the line pitch for the current section.

Consider the document discussed above with the document grid defined to allow 20 characters per line, and 20 lines per page by snapping characters to the grid as follows:

Cc802079.w-docgrid03(en-us,office.14).png

This document has a type attribute of snapToChars, which specifies that the grid shall force East Asian characters to fit 20 to a line.

The possible values for this attribute are defined by the ST_DocGrid simple type.

See Also

Reference

DocGrid Class

DocGrid Members

DocumentFormat.OpenXml.Wordprocessing Namespace