Share via


DrawArcByThreePoints Method [Visio 2003 SDK Documentation]

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

objRet = object.DrawArcByThreePoints(xBegin, yBegin, xEnd, yEnd, xControl, yControl)

objRet    The new Shape object.

object   Required. An expression that returns a Master, Page, or Shape object in which to draw the new shape.

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 end point of the arc.

yEnd    Required Double. The y-coordinate of the end point 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.

Version added

2003

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.

Public Sub DrawArcByThreePoints_Example

    Dim vsoShape As Visio.Shape
    Set vsoShape = ActivePage.DrawArcByThreePoints(3, 3, 6, 8, 5, 5)

End Sub

Applies to | Master object | Page object | Shape object

See Also | DrawBezier method | DrawCircularArc method | DrawLine method | DrawNURBS Method | DrawOval method | DrawPolyline method | DrawQuarterArc method | DrawRectangle method | DrawRegion method | DrawSpline method