Document.GridSpaceBetweenVerticalLines Property (2007 System)
Gets or sets the interval at which Microsoft Office Word displays vertical character gridlines in print layout view.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property GridSpaceBetweenVerticalLines As Integer
'Usage
Dim instance As Document
Dim value As Integer
value = instance.GridSpaceBetweenVerticalLines
instance.GridSpaceBetweenVerticalLines = value
[BrowsableAttribute(false)]
public int GridSpaceBetweenVerticalLines { get; set; }
[BrowsableAttribute(false)]
public:
property int GridSpaceBetweenVerticalLines {
int get ();
void set (int value);
}
public function get GridSpaceBetweenVerticalLines () : int
public function set GridSpaceBetweenVerticalLines (value : int)
Property Value
Type: System.Int32
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.
This example is for a document-level customization.
Private Sub DocumentGridSpaceBetweenHorizontalLines()
Me.GridSpaceBetweenHorizontalLines = 5
Me.GridSpaceBetweenVerticalLines = 2
Me.Application.Options.DisplayGridLines = True
End Sub
private void DocumentGridSpaceBetweenHorizontalLines()
{
this.GridSpaceBetweenHorizontalLines = 5;
this.GridSpaceBetweenVerticalLines = 2;
this.Application.Options.DisplayGridLines = true;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.