aspose.diagram
Class Fill

Contains the current fill formatting values for the shape and the shape's drop shadow, including pattern, foreground color, and background color.

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
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.
functiongetFillBkgnd()
functionsetFillBkgnd(value)
           Specifies the color used for the background of the shape's fill pattern.
functiongetFillBkgndTrans()
functionsetFillBkgndTrans(value)
           Specifies the transparency level for the background (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent).
functiongetFillForegnd()
functionsetFillForegnd(value)
           Specifies the color used for the foreground (stroke) of the shape's fill pattern.
functiongetFillForegndTrans()
functionsetFillForegndTrans(value)
           Specifies the transparency level for the foreground (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent).
functiongetFillPattern()
functionsetFillPattern(value)
           Specifies the fill pattern for the shape.
functiongetGradientFill()
           Contains the current gradient fill formatting values for the shape
functiongetShapeShdwObliqueAngle()
functionsetShapeShdwObliqueAngle(value)
           Specifies the angle of oblique direction of a shape's shadow.
functiongetShapeShdwOffsetX()
functionsetShapeShdwOffsetX(value)
           Determines the distance in page units that a shape's shadow is offset horizontally from the shape.
functiongetShapeShdwOffsetY()
functionsetShapeShdwOffsetY(value)
           Determines the distance in page units that a shape's shadow is offset vertically from the shape.
functiongetShapeShdwScaleFactor()
functionsetShapeShdwScaleFactor(value)
           Specifies the percentage by which the shadow of a shape can be enlarged or reduced.
functiongetShapeShdwShow()
functionsetShapeShdwShow(value)
           Specifies the type of shadow for a shape.
functiongetShapeShdwType()
functionsetShapeShdwType(value)
           Specifies the type of shadow for a shape.
functiongetShdwBkgnd()
functionsetShdwBkgnd(value)
           Specifies the color used for the background (fill) of the shape's drop shadow fill pattern.
functiongetShdwBkgndTrans()
functionsetShdwBkgndTrans(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).
functiongetShdwForegnd()
functionsetShdwForegnd(value)
           Specifies the color used for the foreground (stroke) of the shape's drop shadow fill pattern.
functiongetShdwForegndTrans()
functionsetShdwForegndTrans(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).
functiongetShdwPattern()
functionsetShdwPattern(value)
           Specifies the fill pattern for a shape's shadow.
 
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.

getFillForegnd/setFillForegnd : ColorValue 

function getFillForegnd() / function setFillForegnd(value)
Specifies the color used for the foreground (stroke) of the shape's fill pattern.

getGradientFill : GradientFill 

function getGradientFill()
Contains the current gradient fill formatting values for the shape

getFillBkgnd/setFillBkgnd : ColorValue 

function getFillBkgnd() / function setFillBkgnd(value)
Specifies the color used for the background of the shape's fill pattern.

getFillPattern/setFillPattern : IntValue 

function getFillPattern() / function setFillPattern(value)
Specifies the fill pattern for the shape.

getShdwForegnd/setShdwForegnd : ColorValue 

function getShdwForegnd() / function setShdwForegnd(value)
Specifies the color used for the foreground (stroke) of the shape's drop shadow fill pattern.

getShdwBkgnd/setShdwBkgnd : ColorValue 

function getShdwBkgnd() / function setShdwBkgnd(value)
Specifies the color used for the background (fill) of the shape's drop shadow fill pattern.

getShdwPattern/setShdwPattern : IntValue 

function getShdwPattern() / function setShdwPattern(value)
Specifies the fill pattern for a shape's shadow.

getFillForegndTrans/setFillForegndTrans : DoubleValue 

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).

getFillBkgndTrans/setFillBkgndTrans : DoubleValue 

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).

getShdwForegndTrans/setShdwForegndTrans : DoubleValue 

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).

getShdwBkgndTrans/setShdwBkgndTrans : DoubleValue 

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).

getShapeShdwType/setShapeShdwType : ShapeShdwType 

function getShapeShdwType() / function setShapeShdwType(value)
Specifies the type of shadow for a shape.

getShapeShdwShow/setShapeShdwShow : ShapeShdwShow 

function getShapeShdwShow() / function setShapeShdwShow(value)
Specifies the type of shadow for a shape.

getShapeShdwOffsetX/setShapeShdwOffsetX : DoubleValue 

function getShapeShdwOffsetX() / function setShapeShdwOffsetX(value)
Determines the distance in page units that a shape's shadow is offset horizontally from the shape.

getShapeShdwOffsetY/setShapeShdwOffsetY : DoubleValue 

function getShapeShdwOffsetY() / function setShapeShdwOffsetY(value)
Determines the distance in page units that a shape's shadow is offset vertically from the shape.

getShapeShdwObliqueAngle/setShapeShdwObliqueAngle : DoubleValue 

function getShapeShdwObliqueAngle() / function setShapeShdwObliqueAngle(value)
Specifies the angle of oblique direction of a shape's shadow.

getShapeShdwScaleFactor/setShapeShdwScaleFactor : DoubleValue 

function getShapeShdwScaleFactor() / function setShapeShdwScaleFactor(value)
Specifies the percentage by which the shadow of a shape can be enlarged or reduced.

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.