Spread for ASP.NET 7.0 Product Documentation
BorderSizeTop Field
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > BorderProperty Class : BorderSizeTop Field


Glossary Item Box

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
Visual Basic (Usage)Copy Code
Dim value As BorderProperty
 
value = BorderProperty.BorderSizeTop
C# 
public static readonly BorderProperty BorderSizeTop

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 BasicCopy 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.