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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also