DiagramAddShape Method (Double, Double, Double, Double, String, Int32)

Adds shape created by master on page with defined PinX,PinY,Width and Height.

Namespace:  Aspose.Diagram
Assembly:  Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.3.0.0 (20.3)
Syntax
public long AddShape(
	double pinX,
	double pinY,
	double width,
	double height,
	string masterName,
	int pageNumber
)

Parameters

pinX
Type: SystemDouble
Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the page.
pinY
Type: SystemDouble
Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the page.
width
Type: SystemDouble
Specifies the width of the shape in inches.
height
Type: SystemDouble
Specifies the height of the shape in inches.
masterName
Type: SystemString
Master's name.
pageNumber
Type: SystemInt32
Index of page.

Return Value

Type: Int64
The unique ID of the shape within shapes collection on the specified page.
See Also