Control Reference > VSPrinter Control > VSPrinter Properties > ShowGuides Property |
Returns or sets whether margin guides are displayed on the page.
[form!]VSPrinter.ShowGuides[ = ShowGuideSettings ]
The settings for the ShowGuides property are described below:
Constant |
Value |
Description |
gdHide |
0 |
Never show guides. |
gdShow |
1 |
Always show guides. |
gdDesignTime |
2 |
Show guides at design time (default setting). |
Guides are thin dotted lines that show the position of the margins, headers, and footers. They also show the printable area of the page if PhysicalPage is set to False.
The guides are especially useful at design time, when they provide feedback showing where the margins, headers, and footers will be located on the page. If our applications allow users to modify the page layout, you may want to set the ShowGuides property to True to provide the users with the same feedback.
The following image shows what the preview page looks like with and without the guides:
ShowGuideSettings (Enumeration)
gdDesignTime (2)