DiagramAddShape Method (Double, Double, String, Int32)

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

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,
	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.
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