Spread for ASP.NET 11 Product Documentation
BorderSizeTop Field
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > BorderProperty Class : BorderSizeTop Field
Represents the BorderSizeTop property (index is 9), which specifies the width of the top border.
Syntax
'Declaration
 
Public Shared ReadOnly BorderSizeTop As BorderProperty
'Usage
 
Dim value As BorderProperty
 
value = BorderProperty.BorderSizeTop
public static readonly BorderProperty BorderSizeTop
Example
This example sets different border styles around a cell.
FarPoint.Web.Spread.Border bord = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 2); 
bord.BorderStyleTop = BorderStyle.Ridge; 
bord.BorderStyleBottom = BorderStyle.Double; 
bord.BorderStyleLeft = BorderStyle.Solid; 
bord.BorderStyleRight = BorderStyle.Dotted; 
FpSpread1.ActiveSheetView.Cells(2, 2).Border = bord;
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 2)
bord.BorderStyleTop = BorderStyle.Ridge
bord.BorderStyleBottom = BorderStyle.Double
bord.BorderStyleLeft = BorderStyle.Solid
bord.BorderStyleRight = BorderStyle.Dotted
FpSpread1.ActiveSheetView.Cells(2, 2).Border = bord
See Also

Reference

BorderProperty Class
BorderProperty Members
BorderSize Field