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.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.