LayoutMode Property

Microsoft Word Visual Basic

Show All

LayoutMode Property

       

Returns or sets the layout mode for the current document. Read/write WdLayoutMode.

WdLayoutMode can be one of these WdLayoutMode constants.
wdLayoutModeDefault No grid is used to lay out text.
wdLayoutModeGenko Text is laid out on a grid; the user specifies the number of lines and the number of characters per line. As the user types, Microsoft Word automatically aligns characters with gridlines.
wdLayoutModeGrid Text is laid out on a grid; the user specifies the number of lines and the number of characters per line. As the user types, Microsoft Word doesn't automatically align characters with gridlines.
wdLayoutModeLineGrid Text is laid out on a grid; the user specifies the number of lines, but not the number of characters per line.

expression.LayoutMode

expression   Required. An expression that returns a PageSetup object.

Remarks

For more information on using Word with Asian languages, see Word features for Asian languages.

Example

This example sets the layout mode for the active document so that Microsoft Word automatically aligns typed text to a grid.

ActiveDocument.PageSetup.LayoutMode = wdLayoutModeGenko