asposediagram.api

Contains elements that control line attributes for a shape, such as pattern, weight, and color. These elements determine whether the line ends are formatted (for example, with an arrowhead), the size of line end formats, radius of the rounding circle applied to the line, and line cap style (round or square).

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

diagram = new aspose.diagram.Diagram("AddingNewShape.vsdx");

// get page by name
page = diagram.getPages().getPage("Page-1");
// get shape by id
shape = page.getShapes().getShape(796);
// alter the size of Shape
shape.setWidth(2 * shape.getXForm().getWidth().getValue());
shape.setHeight(2 * shape.getXForm().getHeight().getValue());

diagram.save("out-ChangeShapeSize.vsdx", aspose.diagram.SaveFileFormat.VSDX);

Property Getters/Setters Summary
methodgetAngle()
method
setAngle(value)
           Represents the shape's current angle of rotation in relation to its parent.
methodgetDel()
method
setDel(value)
           A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
methodgetFlipX()
method
setFlipX(value)
           Indicates whether the shape has been flipped horizontally
methodgetFlipY()
method
setFlipY(value)
           Indicates whether the shape has been flipped vertically.
methodgetHeight()
method
setHeight(value)
           Specifies the height of the shape in drawing units.
methodgetLocPinX()
method
setLocPinX(value)
           Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the origin of the shape. The default formula for determining LocPinX is: F='Width* 0.5'.
methodgetLocPinY()
method
setLocPinY(value)
           Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the origin of the shape. The default formula for determining LocPinY is: F='Height * 0.5'.
methodgetPinPos()
method
setPinPos(value)
           Specifies the pin position of the shape The value of the property is PinPosValue integer constant.
methodgetPinX()
method
setPinX(value)
           Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
methodgetPinY()
method
setPinY(value)
           Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
methodgetResizeMode()
method
           Specifies the current resize behavior setting for the shape when contained in a group.
methodgetWidth()
method
setWidth(value)
           Contains the width of the associated shape in drawing units.
 
Method Summary
methoddeepClone()
Creates deep copy of this instance.
 

    • Property Getters/Setters Detail

      • getDel/setDel : int 

        int getDel() / setDel(value)
        
        A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.
      • getPinPos/setPinPos : int 

        int getPinPos() / setPinPos(value)
        
        Specifies the pin position of the shape The value of the property is PinPosValue integer constant.
      • getPinX/setPinX : DoubleValue 

        DoubleValue getPinX() / setPinX(value)
        
        Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
      • getPinY/setPinY : DoubleValue 

        DoubleValue getPinY() / setPinY(value)
        
        Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
      • getWidth/setWidth : DoubleValue 

        DoubleValue getWidth() / setWidth(value)
        
        Contains the width of the associated shape in drawing units.
      • getHeight/setHeight : DoubleValue 

        DoubleValue getHeight() / setHeight(value)
        
        Specifies the height of the shape in drawing units.
      • getLocPinX/setLocPinX : DoubleValue 

        DoubleValue getLocPinX() / setLocPinX(value)
        
        Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the origin of the shape. The default formula for determining LocPinX is: F='Width* 0.5'.
      • getLocPinY/setLocPinY : DoubleValue 

        DoubleValue getLocPinY() / setLocPinY(value)
        
        Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the origin of the shape. The default formula for determining LocPinY is: F='Height * 0.5'.
      • getAngle/setAngle : DoubleValue 

        DoubleValue getAngle() / setAngle(value)
        
        Represents the shape's current angle of rotation in relation to its parent.
      • getFlipX/setFlipX : BoolValue 

        BoolValue getFlipX() / setFlipX(value)
        
        Indicates whether the shape has been flipped horizontally
      • getFlipY/setFlipY : BoolValue 

        BoolValue getFlipY() / setFlipY(value)
        
        Indicates whether the shape has been flipped vertically.
      • getResizeMode/setResizeMode : ResizeMode 

        ResizeMode getResizeMode() / setResizeMode(value)
        
        Specifies the current resize behavior setting for the shape when contained in a group.
    • Method Detail

      • deepClone

        Object deepClone()
        Creates deep copy of this instance.
        Returns: