Spread ASP.NET 6.0 Product Documentation
BorderColor Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class : BorderColor Property


Glossary Item Box

Gets or sets the color for all sides of the border.

Syntax

Visual Basic (Declaration) 
Public Property BorderColor As Color
Visual Basic (Usage)Copy Code
Dim instance As Border
Dim value As Color
 
instance.BorderColor = value
 
value = instance.BorderColor
C# 
public Color BorderColor {get; set;}

Property Value

Color object that contains the color of the border

Remarks

If you want to set the color of each side of the object border, use the BorderColorBottom, BorderColorLeft, BorderColorRight, and BorderColorTop properties.

To check if other border color properties have been set, use the IsDefined method.

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