Adds a new geometry to the geometry collection of the shape. Returns a Geometry object that corresponds to the added geometry.
Applies to: Shape object
[[Set] geometryRet = ] object.AddGeometry ( xStart, yStart ) |
The AddGeometry method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Shape object. |
xStart | Required. An expression that returns a Double value. The X-coordinate of the start segment of the geometry. |
yStart | Required. An expression that returns a Double value. The Y-coordinate of the start segment of the geometry. |
customPropRet | Optional. A CustomProp type variable. |
The AddGeometry method adds a new geometry that contains the start segment in the point with the xStart and yStart coordinates in the coordinate system of object. In case the new geometry couldn't be added, the AddGeometry method returns Nothing.
See Also |
GeometriesNum method, Geometry method, RemoveGeometry method, Geometry object |