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


Glossary Item Box

Represents the BorderStyleTop property (index is 14), which specifies the style for the top border.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly BorderStyleTop As BorderProperty
Visual Basic (Usage)Copy Code
Dim value As BorderProperty
 
value = BorderProperty.BorderStyleTop
C# 
public static readonly BorderProperty BorderStyleTop

Remarks

For more information on these border styles, see the BorderStyle enumeration in the Microsoft .NET Framework Reference.

Example

This example creates a spreadsheet with 7 columns and 50 rows. It sets the first column of cells to be currency cells with a BorderStyle of type Double set on the bottom and left side of the cells and a style of type Groove set on the right and top of the cells. The bottom and left sides have a BorderColor of blue and the size is set to 5.
C#Copy Code
FarPoint.Web.Spread.Border b = new FarPoint.Web.Spread.Border();
bool ie;
FarPoint.Web.Spread.Cell c;
b.BorderColor = Color.Yellow;
b.BorderSize = 3;
b.BorderStyle = BorderStyle.Inset;
c = FpSpread1.ActiveSheetView.Cells[0, 0];
c.Border = b;
ie = b.IsEmpty();
TextBox1.Text = ie.ToString();
Visual BasicCopy Code
Dim b As New FarPoint.Web.Spread.Border
Dim ie As Boolean
Dim c As FarPoint.Web.Spread.Cell
b.BorderColor = Color.Yellow
b.BorderSize = 3
b.BorderStyle = BorderStyle.Inset
c = FpSpread1.ActiveSheetView.Cells(0, 0)
c.Border = b
ie = b.IsEmpty()
TextBox1.Text = ie.ToString()

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.