Page.AddGuide Method
Visio Automation Reference |
Adds a guide to a drawing page.
Version Information
Version Added: Visio 2.0
Syntax
expression.AddGuide(Type, xPos, yPos)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Type | Required | Integer | The type of guide to add. |
xPos | Required | Double | The x-coordinate of a point on the guide. |
yPos | Required | Double | The y-coordinate of a point on the guide. |
Return Value
Shape
Remarks
The following constants declared by the Visio type library are valid values for guide types.
Constant | Value | Description |
---|---|---|
visPoint |
1 |
Guide point |
visHorz |
2 |
Horizontal guide |
visVert |
3 |
Vertical guide |
Example
The following macro shows how to add a horizontal guide to a page.
Visual Basic for Applications |
---|
|
See Also