DocumentBase.GridSpaceBetweenVerticalLines Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the interval at which Microsoft Office Word displays vertical character gridlines in print layout view.
public:
property int GridSpaceBetweenVerticalLines { int get(); void set(int value); };
public int GridSpaceBetweenVerticalLines { get; set; }
member this.GridSpaceBetweenVerticalLines : int with get, set
Public Property GridSpaceBetweenVerticalLines As Integer
Property Value
The interval at which Microsoft Office Word displays vertical character gridlines in print layout view.
Examples
The following code example sets Word to display every fifth horizontal character gridline and every second vertical character gridline. The code then displays the gridlines in the document. To use this example, run it from the ThisDocument
class in a document-level project.
private void DocumentGridSpaceBetweenHorizontalLines()
{
this.GridSpaceBetweenHorizontalLines = 5;
this.GridSpaceBetweenVerticalLines = 2;
this.Application.Options.DisplayGridLines = true;
}
Private Sub DocumentGridSpaceBetweenHorizontalLines()
Me.GridSpaceBetweenHorizontalLines = 5
Me.GridSpaceBetweenVerticalLines = 2
Me.Application.Options.DisplayGridLines = True
End Sub