Page.AddShape

AddShape(double, double, string)

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

public long AddShape(double pinX, double pinY, string masterName)
ParameterTypeDescription
pinXDoubleSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYDoubleSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
masterNameStringMaster’s name.

Return Value

The unique ID of the shape within shapes collection on the specified page.

See Also


AddShape(double, double, double, double, string)

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)
ParameterTypeDescription
pinXDoubleSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYDoubleSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthDoubleSpecifies the width of the shape in inches.
heightDoubleSpecifies the height of the shape in inches.
masterNameStringMaster’s name.

Return Value

The unique ID of the shape within shapes collection on the specified page.

See Also


AddShape(double, double, double, double, Stream, Stream)

public long AddShape(double pinX, double pinY, double width, double height, Stream imageStream, 
    Stream objectDataStream)

See Also


AddShape(double, double, double, double, Stream)

public long AddShape(double pinX, double pinY, double width, double height, Stream stream)

See Also


AddShape(Shape, string)

Adds shape created by master to specific page.

public long AddShape(Shape newShape, string masterName)
ParameterTypeDescription
newShapeShapeNew shape objectShape.
masterNameStringMaster’s name.

Return Value

The unique ID of the shape within shapes collection on the specified page.

See Also