FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Border Class : BorderColor Property |
'Declaration Public Property BorderColor As Color
'Usage Dim instance As Border Dim value As Color instance.BorderColor = value value = instance.BorderColor
public Color BorderColor {get; set;}
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.
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();
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()
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