Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("AddingNewShape.vsdx"); // Get page by ID page = diagram.getPages().getPage("Page-1"); // Get shape by ID shape = page.getShapes().getShape(795); // Get the fill formatting values console.log(shape.getInheritFill().getFillBkgnd().getValue()); console.log(shape.getInheritFill().getFillForegnd().getValue()); console.log(shape.getInheritFill().getFillPattern().getValue()); console.log(shape.getInheritFill().getShapeShdwObliqueAngle().getValue()); console.log(shape.getInheritFill().getShapeShdwOffsetX().getValue()); console.log(shape.getInheritFill().getShapeShdwOffsetY().getValue()); console.log(shape.getInheritFill().getShapeShdwScaleFactor().getValue()); console.log(shape.getInheritFill().getShapeShdwType().getValue()); console.log(shape.getInheritFill().getShdwBkgnd().getValue()); console.log(shape.getInheritFill().getShdwBkgndTrans().getValue()); console.log(shape.getInheritFill().getShdwForegnd().getValue()); console.log(shape.getInheritFill().getShdwForegndTrans().getValue()); console.log(shape.getInheritFill().getShdwPattern().getValue());
Property Getters/Setters Summary | ||
---|---|---|
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. | ||
function | getFillBkgnd() | |
function | setFillBkgnd(value) | |
Specifies the color used for the background of the shape's fill pattern. | ||
function | getFillBkgndTrans() | |
function | setFillBkgndTrans(value) | |
Specifies the transparency level for the background (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent). | ||
function | getFillForegnd() | |
function | setFillForegnd(value) | |
Specifies the color used for the foreground (stroke) of the shape's fill pattern. | ||
function | getFillForegndTrans() | |
function | setFillForegndTrans(value) | |
Specifies the transparency level for the foreground (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent). | ||
function | getFillPattern() | |
function | setFillPattern(value) | |
Specifies the fill pattern for the shape. | ||
function | getGradientFill() | |
Contains the current gradient fill formatting values for the shape | ||
function | getShapeShdwObliqueAngle() | |
function | setShapeShdwObliqueAngle(value) | |
Specifies the angle of oblique direction of a shape's shadow. | ||
function | getShapeShdwOffsetX() | |
function | setShapeShdwOffsetX(value) | |
Determines the distance in page units that a shape's shadow is offset horizontally from the shape. | ||
function | getShapeShdwOffsetY() | |
function | setShapeShdwOffsetY(value) | |
Determines the distance in page units that a shape's shadow is offset vertically from the shape. | ||
function | getShapeShdwScaleFactor() | |
function | setShapeShdwScaleFactor(value) | |
Specifies the percentage by which the shadow of a shape can be enlarged or reduced. | ||
function | getShapeShdwShow() | |
function | setShapeShdwShow(value) | |
Specifies the type of shadow for a shape. | ||
function | getShapeShdwType() | |
function | setShapeShdwType(value) | |
Specifies the type of shadow for a shape. | ||
function | getShdwBkgnd() | |
function | setShdwBkgnd(value) | |
Specifies the color used for the background (fill) of the shape's drop shadow fill pattern. | ||
function | getShdwBkgndTrans() | |
function | setShdwBkgndTrans(value) | |
Specifies transparency level for the background (fill) of the shape's drop shadow fill pattern, from 0.0 (completely opaque) to 1.0 (completely transparent). | ||
function | getShdwForegnd() | |
function | setShdwForegnd(value) | |
Specifies the color used for the foreground (stroke) of the shape's drop shadow fill pattern. | ||
function | getShdwForegndTrans() | |
function | setShdwForegndTrans(value) | |
Specifies transparency level for the foreground (stroke) of the shape's drop shadow fill pattern, from 0.0 (completely opaque) to 1.0 (completely transparent). | ||
function | getShdwPattern() | |
function | setShdwPattern(value) | |
Specifies the fill pattern for a shape's shadow. |
Method Summary | ||
---|---|---|
function | deepClone() | |
Creates deep copy of this instance. |
Property Getters/Setters Detail |
---|
getDel/setDel : Number | |
function getDel() / function setDel(value) |
getFillForegnd/setFillForegnd : ColorValue | |
function getFillForegnd() / function setFillForegnd(value) |
getGradientFill : GradientFill | |
function getGradientFill() |
getFillBkgnd/setFillBkgnd : ColorValue | |
function getFillBkgnd() / function setFillBkgnd(value) |
getFillPattern/setFillPattern : IntValue | |
function getFillPattern() / function setFillPattern(value) |
getShdwForegnd/setShdwForegnd : ColorValue | |
function getShdwForegnd() / function setShdwForegnd(value) |
getShdwBkgnd/setShdwBkgnd : ColorValue | |
function getShdwBkgnd() / function setShdwBkgnd(value) |
getShdwPattern/setShdwPattern : IntValue | |
function getShdwPattern() / function setShdwPattern(value) |
getFillForegndTrans/setFillForegndTrans : DoubleValue | |
function getFillForegndTrans() / function setFillForegndTrans(value) |
getFillBkgndTrans/setFillBkgndTrans : DoubleValue | |
function getFillBkgndTrans() / function setFillBkgndTrans(value) |
getShdwForegndTrans/setShdwForegndTrans : DoubleValue | |
function getShdwForegndTrans() / function setShdwForegndTrans(value) |
getShdwBkgndTrans/setShdwBkgndTrans : DoubleValue | |
function getShdwBkgndTrans() / function setShdwBkgndTrans(value) |
getShapeShdwType/setShapeShdwType : ShapeShdwType | |
function getShapeShdwType() / function setShapeShdwType(value) |
getShapeShdwShow/setShapeShdwShow : ShapeShdwShow | |
function getShapeShdwShow() / function setShapeShdwShow(value) |
getShapeShdwOffsetX/setShapeShdwOffsetX : DoubleValue | |
function getShapeShdwOffsetX() / function setShapeShdwOffsetX(value) |
getShapeShdwOffsetY/setShapeShdwOffsetY : DoubleValue | |
function getShapeShdwOffsetY() / function setShapeShdwOffsetY(value) |
getShapeShdwObliqueAngle/setShapeShdwObliqueAngle : DoubleValue | |
function getShapeShdwObliqueAngle() / function setShapeShdwObliqueAngle(value) |
getShapeShdwScaleFactor/setShapeShdwScaleFactor : DoubleValue | |
function getShapeShdwScaleFactor() / function setShapeShdwScaleFactor(value) |
Method Detail |
---|
deepClone | |
function deepClone() |