View.DisplayPageBoundaries Property
True to display the top and bottom margins (white space) and the gray area (gray space) between pages in a document. False to hide from view the white and gray space so that the pages flow together as one long page. The default value is True.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property DisplayPageBoundaries As Boolean
Get
Set
'Usage
Dim instance As View
Dim value As Boolean
value = instance.DisplayPageBoundaries
instance.DisplayPageBoundaries = value
bool DisplayPageBoundaries { get; set; }
Property Value
Type: System.Boolean
Remarks
This feature is only available in the Print Layout view and only affects the gray space on the top and bottom of a page, not the left and right sides of a page. This setting affects the document in the in the specified window. When the document is saved, the state of this setting is saved with it.