Share via


Shape.DrawArcByThreePoints Method

Visio Automation Reference

Creates a shape whose path consists of an arc defined by the three points passed as parameters. .

Version Information
 Version Added:  Visio 2003

Syntax

expression.DrawArcByThreePoints(xBegin, yBegin, xEnd, yEnd, xControl, yControl)

expression   A variable that represents a Shape object.

Parameters

Name Required/Optional Data Type Description
xBegin Required Double The x-coordinate of the begin point of the arc.
yBegin Required Double The y-coordinate of the begin point of the arc.
xEnd Required Double The x-coordinate of the endpoint of the arc.
yEnd Required Double The y-coordinate of the endpoint of the arc.
xControl Required Double The x-coordinate of the control point of the arc.
yControl Required Double The y-coordinate of the control point of the arc.

Return Value
Shape

Remarks

All points should be in internal drawing units with respect to the coordinate space of the master, page, or group where the shape is being drawn.

Example

This Microsoft Visual Basic for Applications (VBA) macro shows how to use the DrawArcByThreePoints method to draw an arc on the drawing page.

Visual Basic for Applications
  Public Sub DrawArcByThreePoints_Example
Dim vsoShape As Visio.Shape
Set vsoShape = ActivePage.DrawArcByThreePoints(3, 3, 6, 8, 5, 5)

End Sub

See Also