Builds a spline segment in a shape. Returns an instance of the Shape object, corresponding to the shape where the spline segment has been built.
Applies to: Page object, Shape object
[[Set] shapeRet =] object.SplineTo ( xKnot, yKnot, xA, yB ) |
The SplineTo method syntax has these parts:
Part | Description |
object | Required. An expression that returns an object in the Applies to list. |
xKnot | Required. An expression that returns a Double value. The X-coordinate of the end point of the spline segment. |
yKnot | Required. An expression that returns a Double value. The Y-coordinate of the end point of the spline segment. |
xA | Required. An expression that returns a Double value. The X-coordinate of the end guiding point of the spline segment. |
yB | Required. An expression that returns a Double value. The Y-coordinate of the end guiding point of the spline segment. |
shapeRet | Optional. A Shape type variable. |
The SplineTo method adds to the shape a new spline segment, described by four points: the begin point (the X and Y fields of the previous segment), the begin guiding point (the A and B fields of the previous segment), the end point (specified by the xKnot and yKnot parameters), the end guiding point (xA and xB parameters). Note, that a spline segment can only be added to a start spline segment or previous spline segment. That is, the SplineStart method must be called prior to the SplineTo method.
If object is a page or a group, the SplineTo method adds the spline start segment to the current Basic shape and returns a Shape object that corresponds to that shape. If the method was called prior to the BeginShape method or after the EndShape method, the SplineTo method doesn't create anything and returns Nothing.
If object is a simple shape, the SplineTo method adds a new spline segment to this shape and returns object.
The coordinates of the points are in the coordinate system of the shape, group or the page to which object corresponds. The coordinates are measured in internal units (InternalUnit).
See Also |
ArcTo method, BeginShape method, EndShape method, LineTo method, MoveTo method, SplineStart method |