Represents the BorderSizeTop property (index is 9), which specifies the width of the top border.
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly BorderSizeTop As BorderProperty |
Example
This example sets different border styles around a cell.
C# | Copy Code |
---|
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; |
Visual Basic | Copy Code |
---|
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 |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also