VegaRise.NET
HomeAPI Reference
Back to DOM

DocGridValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies how the document grid is applied to a page.

Remarks

Used by to control whether the grid affects line pitch, character spacing, or both. Often used in East Asian typography. DocumentGrid.Type

Examples

csharp
1// 1. Default grid
2var grid = new DocumentGrid { Type = DocGridValues.defaultGrid };
3
csharp
1// 2. Line-only grid
2var grid = new DocumentGrid { Type = DocGridValues.lines };
3
csharp
1// 3. Line-and-character grid
2var grid = new DocumentGrid { Type = DocGridValues.linesAndChars };
3
csharp
1// 4. Snap to characters only
2var grid = new DocumentGrid { Type = DocGridValues.snapToChars };
3

Fields

defaultGrid

Use the default grid behaviour.

lines

Grid applies to lines only.

linesAndChars

Grid applies to both lines and characters.

snapToChars

Snap layout to the character grid.