SpreadJS Documentation
borderStyle Method
GC.Spread.Sheets.FloatingObjects Namespace > Picture type : borderStyle Method
The css border style of the picture, such as dotted, dashed, solid, and so on.
Gets or sets the border style of the picture.
Syntax
var instance = new GC.Spread.Sheets.FloatingObjects.Picture(name, src, x, y, width, height);
var returnValue; // Type: any
returnValue = instance.borderStyle(value);
function borderStyle( 
   value : string
) : any;

Parameters

value
The css border style of the picture, such as dotted, dashed, solid, and so on.

Return Value

If no value is set, returns the border style of the picture; otherwise, returns the picture.
Example
This example uses the borderStyle method.
activeSheet.pictures.add("f2","Event.png",2,2,10,10);
var picture = activeSheet.pictures.get("f2");
picture.pictureStretch(GC.Spread.Sheets.ImageLayout.center);
picture.backColor("Blue");
picture.borderWidth(2);
picture.borderColor("Red");
picture.borderStyle("dotted");
picture.borderRadius(5);
Remarks

The border style settings are the same as the css border style settings. The following settings are valid values: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset, initial, or inherit.

See Also

Reference

Picture type