Draws an arc of a circle. Returns an instance of the Shape object which corresponds to the drawn shape or the shape in which the arc has been built.
Applies to: Page object, Shape object
[[Set] shapeRet =] object.DrawSector ( xBegin, yBegin, xEnd, yEnd, xMiddle, yMiddle ) |
The DrawSector method syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of an object from the Applies to list. |
xBegin | Required. An expression that returns a Double value. Represents the X-coordinate of the begin point of the arc being built. |
yBegin | Required. An expression that returns a Double value. Represents the Y-coordinate of the begin point of the arc being built. |
xEnd | Required. An expression that returns a Double value. Represents the X-coordinate of the end point of the arc being built. |
yEnd | Required. An expression that returns a Double value. Represents the Y-coordinate of the end point of the arc being built. |
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. |
shapeRet | Optional. A Shape type variable. |
If object is a page or a group, the DrawSector method creates on the corresponding page or group a shape, that contains a geometry describing an arc of a circle with the specified coordinates of the begin, end points and the point that lies on the arc. Then it returns an instance of the Shape object, corresponding to that shape. If the DrawSector method was called after the BeginShape method, it adds a new geometry, describing the arc, to the current Basic-shape. Then it returns an instance of the Shape object, corresponding to that shape.
If object is a simple shape, the DrawSector method for the shape creates an arc in the shape and returns object.
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, DrawLine method, DrawOval method, DrawRect method, EndShape method |