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

    Parameters

    value
    The value that indicates whether this shape is selected.

    Return Value

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

    Reference

    ShapeBase type