asposediagram.api

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
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.
methodgetFillBkgnd()
method
           Specifies the color used for the background of the shape's fill pattern.
methodgetFillBkgndTrans()
method
           Specifies the transparency level for the background (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent).
methodgetFillForegnd()
method
           Specifies the color used for the foreground (stroke) of the shape's fill pattern.
methodgetFillForegndTrans()
method
           Specifies the transparency level for the foreground (fill) color of the shape's fill pattern, from 0 (completely opaque) to 1 (completely transparent).
methodgetFillPattern()
method
           Specifies the fill pattern for the shape.
methodgetGradientFill()
Contains the current gradient fill formatting values for the shape
methodgetShapeShdwBlur()
method
           Specifies the shadow blur size of a shape. cannot draw blur now, but can parse from vsdx now.
methodgetShapeShdwObliqueAngle()
method
           Specifies the angle of oblique direction of a shape's shadow.
methodgetShapeShdwOffsetX()
method
           Determines the distance in page units that a shape's shadow is offset horizontally from the shape.
methodgetShapeShdwOffsetY()
method
           Determines the distance in page units that a shape's shadow is offset vertically from the shape.
methodgetShapeShdwScaleFactor()
method
           Specifies the percentage by which the shadow of a shape can be enlarged or reduced.
methodgetShapeShdwShow()
method
           Specifies the type of shadow for a shape.
methodgetShapeShdwType()
method
           Specifies the type of shadow for a shape.
methodgetShdwBkgnd()
method
           Specifies the color used for the background (fill) of the shape's drop shadow fill pattern.
methodgetShdwBkgndTrans()
method
           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).
methodgetShdwForegnd()
method
           Specifies the color used for the foreground (stroke) of the shape's drop shadow fill pattern.
methodgetShdwForegndTrans()
method
           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).
methodgetShdwPattern()
method
           Specifies the fill pattern for a shape's shadow.
 
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.
      • getFillForegnd/setFillForegnd : ColorValue 

        ColorValue getFillForegnd() / setFillForegnd(value)
        
        Specifies the color used for the foreground (stroke) of the shape's fill pattern.
      • getGradientFill : GradientFill 

        GradientFill getGradientFill()
        
        Contains the current gradient fill formatting values for the shape
      • getFillBkgnd/setFillBkgnd : ColorValue 

        ColorValue getFillBkgnd() / setFillBkgnd(value)
        
        Specifies the color used for the background of the shape's fill pattern.
      • getFillPattern/setFillPattern : IntValue 

        IntValue getFillPattern() / setFillPattern(value)
        
        Specifies the fill pattern for the shape.
      • getShdwForegnd/setShdwForegnd : ColorValue 

        ColorValue getShdwForegnd() / setShdwForegnd(value)
        
        Specifies the color used for the foreground (stroke) of the shape's drop shadow fill pattern.
      • getShdwBkgnd/setShdwBkgnd : ColorValue 

        ColorValue getShdwBkgnd() / setShdwBkgnd(value)
        
        Specifies the color used for the background (fill) of the shape's drop shadow fill pattern.
      • getShdwPattern/setShdwPattern : IntValue 

        IntValue getShdwPattern() / setShdwPattern(value)
        
        Specifies the fill pattern for a shape's shadow.
      • getFillForegndTrans/setFillForegndTrans : DoubleValue 

        DoubleValue getFillForegndTrans() / 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 

        DoubleValue getFillBkgndTrans() / 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 

        DoubleValue getShdwForegndTrans() / 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 

        DoubleValue getShdwBkgndTrans() / 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 

        ShapeShdwType getShapeShdwType() / setShapeShdwType(value)
        
        Specifies the type of shadow for a shape.
      • getShapeShdwShow/setShapeShdwShow : ShapeShdwShow 

        ShapeShdwShow getShapeShdwShow() / setShapeShdwShow(value)
        
        Specifies the type of shadow for a shape.
      • getShapeShdwOffsetX/setShapeShdwOffsetX : DoubleValue 

        DoubleValue getShapeShdwOffsetX() / setShapeShdwOffsetX(value)
        
        Determines the distance in page units that a shape's shadow is offset horizontally from the shape.
      • getShapeShdwOffsetY/setShapeShdwOffsetY : DoubleValue 

        DoubleValue getShapeShdwOffsetY() / setShapeShdwOffsetY(value)
        
        Determines the distance in page units that a shape's shadow is offset vertically from the shape.
      • getShapeShdwObliqueAngle/setShapeShdwObliqueAngle : DoubleValue 

        DoubleValue getShapeShdwObliqueAngle() / setShapeShdwObliqueAngle(value)
        
        Specifies the angle of oblique direction of a shape's shadow.
      • getShapeShdwScaleFactor/setShapeShdwScaleFactor : DoubleValue 

        DoubleValue getShapeShdwScaleFactor() / setShapeShdwScaleFactor(value)
        
        Specifies the percentage by which the shadow of a shape can be enlarged or reduced.
      • getShapeShdwBlur/setShapeShdwBlur : DoubleValue 

        DoubleValue getShapeShdwBlur() / setShapeShdwBlur(value)
        
        Specifies the shadow blur size of a shape. cannot draw blur now, but can parse from vsdx now.
    • Method Detail

      • deepClone

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