aspose.diagram
Class XForm

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
functiongetAngle()
functionsetAngle(value)
           Represents the shape's current angle of rotation in relation to its parent.
functiongetDel()
functionsetDel(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.
functiongetFlipX()
functionsetFlipX(value)
           Indicates whether the shape has been flipped horizontally
functiongetFlipY()
functionsetFlipY(value)
           Indicates whether the shape has been flipped vertically.
functiongetHeight()
functionsetHeight(value)
           Specifies the height of the shape in drawing units.
functiongetLocPinX()
functionsetLocPinX(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'.
functiongetLocPinY()
functionsetLocPinY(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'.
functiongetPinPos()
functionsetPinPos(value)
           Specifies the pin postion of the shape The value of the property is PinPosValue integer constant.
functiongetPinX()
functionsetPinX(value)
           Specifies the x-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
functiongetPinY()
functionsetPinY(value)
           Specifies the y-coordinate of the shape's pin (center of rotation) in relation to the origin of its parent.
functiongetResizeMode()
functionsetResizeMode(value)
           Specifies the current resize behavior setting for the shape when contained in a group.
functiongetWidth()
functionsetWidth(value)
           Contains the width of the associated shape in drawing units.
 
Method Summary
functiondeepClone()
           Creates deep copy of this instance.
 

Property Getters/Setters Detail

getDel/setDel : Number 

function getDel() / function 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 : Number 

function getPinPos() / function setPinPos(value)
Specifies the pin postion of the shape The value of the property is PinPosValue integer constant.

getPinX/setPinX : DoubleValue 

function getPinX() / function 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 

function getPinY() / function 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 

function getWidth() / function setWidth(value)
Contains the width of the associated shape in drawing units.

getHeight/setHeight : DoubleValue 

function getHeight() / function setHeight(value)
Specifies the height of the shape in drawing units.

getLocPinX/setLocPinX : DoubleValue 

function getLocPinX() / function 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 

function getLocPinY() / function 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 

function getAngle() / function setAngle(value)
Represents the shape's current angle of rotation in relation to its parent.

getFlipX/setFlipX : BoolValue 

function getFlipX() / function setFlipX(value)
Indicates whether the shape has been flipped horizontally

getFlipY/setFlipY : BoolValue 

function getFlipY() / function setFlipY(value)
Indicates whether the shape has been flipped vertically.

getResizeMode/setResizeMode : ResizeMode 

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

Method Detail

deepClone

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

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.