SpreadJS 13
GC.Spread.Sheets.Shapes Namespace / ShapeBase type / canPrint Method
The value that indicates whether this shape is printable.
In This Topic
    canPrint Method
    In This Topic
    Gets or sets whether this shape is printable.
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.ShapeBase();
    var returnValue; // Type: any
    returnValue = instance.canPrint(value);
    function canPrint( 
       value : boolean
    ) : any;

    Parameters

    value
    The value that indicates whether this shape is printable.

    Return Value

    If no value is set, returns whether this shape is printable.
    Example
    var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
    var state = heart.canPrint();
    heart.canPrint(!state);
    See Also

    Reference

    ShapeBase type