Spread ASP.NET 6.0 Product Documentation
BorderSizeTop Field
See Also  Example Send Feedback
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 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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.