Shape.Offset Method
Visio Automation Reference |
Offsets a shape a specified amount.
Version Information
Version Added: Visio 2003
Syntax
expression.Offset(Distance)
expression A variable that represents a Shape object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Distance | Required | Double | Specifies the distance to offset the shape. |
Return Value
Nothing
Remarks
Calling the Offset method is the equivalent of selecting the Offset command in the user interface (Shape menu, Operations submenu).
For a specified line or curve, the offset is implemented as a pair of lines or curves that are equidistant from the original line or curve. Offset shapes inherit line patterns from the original shapes. They do not inherit any fill patterns or text from the original shapes.
Example
This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Offset method to offset a line shape by a specified amount.
Visual Basic for Applications |
---|
|
See Also