SpreadJS 13
GC.Spread.Sheets.Shapes Namespace / ShapeBase type / allowResize Method
The setting for whether to disable resizing the shape.
In This Topic
    allowResize Method
    In This Topic
    Gets or sets whether to disable resizing the shape.
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.ShapeBase();
    var returnValue; // Type: any
    returnValue = instance.allowResize(value);
    function allowResize( 
       value : boolean
    ) : any;

    Parameters

    value
    The setting for whether to disable resizing the shape.

    Return Value

    If no value is set, returns the setting for whether to disable resizing the shape.
    Example
    var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
    var state = heart.allowResize();
    heart.allowResize(!state);
    See Also

    Reference

    ShapeBase type