ArcTo Method

Builds an arc of a circle. Returns an instance of the Shape object, corresponding to the built shape.

Applies to: Page object, Shape object

Syntax

[[Set] shapeRet =] object.ArcTo ( x2, y2, x3, y3 )

The ArcTo method syntax has these parts:

Part Description
object Required. An expression that returns an instance of an object from the Applies to list.
xMiddle Required. An expression that returns a Double value. Represents the X-coordinate of the point, that lies on the arc being built.
yMiddle Required. An expression that returns a Double value. Represents the Y-coordinate of the point, that lies on the arc being built.
xEnd Required. An expression that returns a Double value. Represents the X-coordinate of the end of the arc being built.
yEnd Required. An expression that returns a Double value. Represents the Y-coordinate of the end of the arc being built.
shapeRet Optional. A Shape type variable.

Remarks

The arc of a circle is based on three points: the beginning of the arc, a point on the arc, and the end of the arc.

If object is a page or a group, the ArcTo method creates the arc in the current Basic-shape (the BeginShape method), and returns an instance of the Shape object, corresponding to that shape. If the method was called prior to the BeginShape method or after the EndShape method, the ArcTo method doesn't create anything and returns Nothing.

If object is a regular shape, the ArcTo method for the shape adds a new arc geometry to the shape and returns object.

In any case, the begin point of the arc is the end point of the last geometry of the shape, in which the segment is being built. To reposition the begin point of the arc, use the MoveTo method. The coordinates of the points are in the coordinate system of the shape, group or the page - depending on the object type. The unit of measure of the specified coordinates is InternalUnit.

 

See Also

BeginShape method, EndShape method, LineTo method, MoveTo method, SplineStart method, SplineTo method