SpreadJS 14
GC.Spread.Sheets.Shapes Namespace / CameraShape type / style Method
The shape style.
In This Topic
    style Method
    In This Topic
    Gets or sets the style of the camera shape.
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.CameraShape(worksheet, name, range, left, top, width, height);
    var returnValue; // Type: any
    returnValue = instance.style(value);
    function style( 
       value : ShapeStyle
    ) : any;

    Parameters

    value
    The shape style.
    Example
    //This sample sets style for the shape.
    var shape = sheet.shapes.addCameraShape("shape1", 'Sheet1!A1:A8', 100, 50, 100, 150);
    var oldStyle = shape.style();
    oldStyle.fill.color = "red";
    oldStyle.fill.transparency = 0.5;
    oldStyle.line.color = "green";
    oldStyle.line.lineStyle = GC.Spread.Sheets.Shapes.PresetLineDashStyle.dashDot;
    oldStyle.line.width = 5;
    oldStyle.line.capType = GC.Spread.Sheets.Shapes.LineCapStyle.square;
    oldStyle.line.joinType = GC.Spread.Sheets.Shapes.LineJoinStyle.miter;
    oldStyle.line.transparency = 0.5;
    shape.style(oldStyle);
    See Also