VegaRise.NET

Document Grid

The document grid defines character and line pitch, primarily used in East Asian typography to align text lines. Assign to VDocs.DocumentGrid.

C#
1using Vega;
2using Vega.DOM;
3using DOM.Enums;
4
5var doc = new VDocs();
6
7doc.DocumentGrid = new DocumentGrid
8{
9 CharacterSpace = new DocumentUnit { MM = 5 },
10 LinePitch = new DocumentUnit { Point = 20 },
11 Type = DocGridValues.linesAndChars,
12};
13
14doc.AddParagraph().AddText("Grid-aligned text");
15doc.SaveAsWord("with-grid.docx");

Frequently asked questions

When should I use the document grid?

Typically for CJK document bodies where consistent line and character alignment improves readability.

Does it affect paragraph spacing?

Yes — line pitch is enforced when Type is lines or linesAndChars.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in