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.