Spread for ASP.NET 11 Product Documentation
BorderSize Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class : BorderSize Property
Gets or sets the width in pixels for the border for all sides.
Syntax
'Declaration
 
Public Property BorderSize As Integer
'Usage
 
Dim instance As Border
Dim value As Integer
 
instance.BorderSize = value
 
value = instance.BorderSize
public int BorderSize {get; set;}

Property Value

Integer number of pixels of the thickness of the border
Remarks

If you want to set the size of each side of the object border, use the BorderSizeBottom, BorderSizeLeft, BorderSizeRight, and BorderSizeTop properties.

To check if other border size properties have been set, use the IsDefined method.

Example
This example sets the BorderSize.
FarPoint.Web.Spread.CurrencyCellType currcell = new FarPoint.Web.Spread.CurrencyCellType();
FarPoint.Web.Spread.Border aborder = new FarPoint.Web.Spread.Border();
FarPoint.Web.Spread.StyleInfo currstyle = new FarPoint.Web.Spread.StyleInfo();
FpSpread1.Sheets[0].ColumnCount = 7;
FpSpread1.Sheets[0].RowCount = 50;
currcell.Size = 20;
aborder.BorderColorBottom = Color.Blue;
aborder.BorderColorLeft = Color.Blue;
aborder.BorderSize = 5;
aborder.BorderStyleBottom = BorderStyle.Double;
aborder.BorderStyleLeft = BorderStyle.Double;
aborder.BorderStyleRight = BorderStyle.Groove;
aborder.BorderStyleTop = BorderStyle.Groove;
currstyle.CellType = currcell;
currstyle.Border = aborder;
FpSpread1.Sheets[0].SetStyleInfo(-1, 0, currstyle);
Dim currcell As New FarPoint.Web.Spread.CurrencyCellType()
Dim aborder As New FarPoint.Web.Spread.Border()
Dim currstyle As New FarPoint.Web.Spread.StyleInfo()
FpSpread1.Sheets(0).ColumnCount = 7
FpSpread1.Sheets(0).RowCount = 50
currcell.Size = 20
aborder.BorderColorBottom = Color.Blue
aborder.BorderColorLeft = Color.Blue
aborder.BorderSize = 5
aborder.BorderStyleBottom = BorderStyle.Double
aborder.BorderStyleLeft = BorderStyle.Double
aborder.BorderStyleRight = BorderStyle.Groove
aborder.BorderStyleTop = BorderStyle.Groove
currstyle.CellType = currcell
currstyle.Border = aborder
FpSpread1.Sheets(0).SetStyleInfo(-1, 0, currstyle)
See Also

Reference

Border Class
Border Members
BorderSizeBottom Property
BorderSizeLeft Property
BorderSizeRight Property
BorderSizeTop Property
IsDefined Method