Table of contents
Collapse the table of content
Expand the table of content

Selection.Offset Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Offsets a selection a specified amount.


expression . Offset( Distance )

expression A variable that represents a Selection object.


NameRequired/OptionalData TypeDescription
DistanceRequiredDoubleSpecifies the distance to offset the selection.

Return Value



Calling the Offset method is equivalent to clicking Offset in the Microsoft Visio user interface (click Operations in the Shape Design group on theDeveloper tab).

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.


This Microsoft Visual Basic for Applications (VBA) macro shows how to use the Offset method to offset a line shape by a specified amount.

Public Sub Offset_Example() 

 Dim vsoShape As Visio.Shape 

 Set vsoShape = Application.ActiveWindow.Page.DrawLine(3, 3, 6, 6) 

 ActiveWindow.Select vsoShape, visSelect 

End Sub
© 2018 Microsoft