GeometryShape

GeometryShape class

Represents the parent class for all geometric shapes.

createShapeElements

NameDescription
createShapeElements ()Creates and returns array of shape’s elements.

Returns: ShapeElement


getAdjustments

NameDescription
getAdjustments ()Returns a collection of shape’s adjustment values. Read-only IAdjustValueCollection.

Returns: AdjustValueCollection


getGeometryPaths

NameDescription
getGeometryPaths ()Returns the copy of path of the geometry shape. Coordinates are relative to the left top corner of the shape.

Returns: GeometryPath


getShapeStyle

NameDescription
getShapeStyle ()Returns shape’s style object. Read-only IShapeStyle.

Returns: ShapeStyle


getShapeType

NameDescription
getShapeType ()Returns or sets the geometry preset type. Note: on value changing all adjustment values will reset to their default values. Read/write ShapeType.

Returns: int


setGeometryPath

NameDescription
setGeometryPath (GeometryPath)Updates shape geometry from IGeometryPath object. Coordinates must be relative to the left top corner of the shape. Changes the type of the shape (ShapeType( #getShapeType/ #setShapeType(int))) to ShapeType#Custom.

Parameters:

NameTypeDescription
geometryPathGeometryPathGeometry path

Returns: void

Exception

ErrorCondition
ArgumentExceptionEmpty path found

setGeometryPaths

NameDescription
setGeometryPaths (com.aspose.slides.IGeometryPath[])Updates shape geometry from array of IGeometryPath. Coordinates must be relative to the left top corner of the shape. Changes the type of the shape (ShapeType( #getShapeType/ #setShapeType(int))) to ShapeType#Custom.

Parameters:

NameTypeDescription
geometryPathscom.aspose.slides.IGeometryPath[]Array geometry paths

Returns: void

Exception

ErrorCondition
ArgumentExceptionEmpty path

setShapeType

NameDescription
setShapeType (int)Returns or sets the geometry preset type. Note: on value changing all adjustment values will reset to their default values. Read/write ShapeType.

Returns: void