Document.GridSpaceBetweenHorizontalLines Property (2007 System)
Gets or sets the interval at which Microsoft Office Word displays horizontal 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 GridSpaceBetweenHorizontalLines As Integer
'Usage
Dim instance As Document
Dim value As Integer
value = instance.GridSpaceBetweenHorizontalLines
instance.GridSpaceBetweenHorizontalLines = value
[BrowsableAttribute(false)]
public int GridSpaceBetweenHorizontalLines { get; set; }
[BrowsableAttribute(false)]
public:
property int GridSpaceBetweenHorizontalLines {
int get ();
void set (int value);
}
public function get GridSpaceBetweenHorizontalLines () : int
public function set GridSpaceBetweenHorizontalLines (value : int)
Property Value
Type: System.Int32
The interval at which Microsoft Office Word displays horizontal 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.