SpreadJS Documentation
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 GcSpread.Sheets.Picture(name, src, x, y, width, height);
var returnValue; // Type: Object
returnValue = instance.borderStyle(value);
function borderStyle( 
   value : string
) : Object;

Parameters

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

Return Value

The border style of the picture.
Example
This example uses the borderStyle method.
activeSheet.addPicture("f2","Event.png",2,2,6,6);
var picture = activeSheet.findPicture("f2");
picture.pictureStretch(GcSpread.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

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.