Diagram.AddShape
Contents
[
Hide
]AddShape(Shape, string, int)
Adds shape created by master to specific page.
public long AddShape(Shape newShape, string masterName, int pageNumber)
Parameter | Type | Description |
---|---|---|
newShape | Shape | New shape objectShape . |
masterName | String | Master’s name. |
pageNumber | Int32 | Index of page. |
Return Value
The unique ID of the shape within shapes collection on the specified page.
See Also
- class Shape
- class Diagram
- namespace Aspose.Diagram
- assembly Aspose.Diagram
AddShape(double, double, string, int)
Adds shape created by master on page with defined PinX and PinY.
public long AddShape(double pinX, double pinY, string masterName, int pageNumber)
Parameter | Type | Description |
---|---|---|
pinX | Double | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
pinY | Double | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
masterName | String | Master’s name. |
pageNumber | Int32 | Index of page. |
Return Value
The unique ID of the shape within shapes collection on the specified page.
See Also
- class Diagram
- namespace Aspose.Diagram
- assembly Aspose.Diagram
AddShape(double, double, double, double, string, int)
Adds shape created by master on page with defined PinX,PinY,Width and Height.
public long AddShape(double pinX, double pinY, double width, double height, string masterName,
int pageNumber)
Parameter | Type | Description |
---|---|---|
pinX | Double | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
pinY | Double | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
width | Double | Specifies the width of the shape in inches. |
height | Double | Specifies the height of the shape in inches. |
masterName | String | Master’s name. |
pageNumber | Int32 | Index of page. |
Return Value
The unique ID of the shape within shapes collection on the specified page.
See Also
- class Diagram
- namespace Aspose.Diagram
- assembly Aspose.Diagram