Spread for ASP.NET 10 Product Documentation
Border Property (Cell)
Example 


Gets or sets the border for a cell.
Syntax
'Declaration
 
Public Property Border As Border
'Usage
 
Dim instance As Cell
Dim value As Border
 
instance.Border = value
 
value = instance.Border
public Border Border {get; set;}

Property Value

Border object with border of the cell
Remarks

The setting for this property can be overridden if a named style is assigned to the cell using the StyleName property, and that named style sets a border.

Example
This example creates a Cell object, sets in BackColor and ForeColor properties, defines it as a CheckBox cell type, and puts a border around it. When the user edits the cell and checks the CheckBox, the text of the cell changes.
FarPoint.Web.Spread.Cell mycell;
mycell = FpSpread1.Cells[0, 0];
mycell.BackColor = Color.RoyalBlue;
mycell.ForeColor = Color.White;
mycell.Border = new FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, Color.DarkBlue, 2);
mycell.CellType = new FarPoint.Web.Spread.CheckBoxCellType();
Dim mycell As FarPoint.Web.Spread.Cell
mycell = FpSpread1.Cells(0, 0)
mycell.BackColor = Color.RoyalBlue
mycell.ForeColor = Color.White
mycell.Border = New FarPoint.Web.Spread.Border(System.Web.UI.WebControls.BorderStyle.Double, Color.DarkBlue, 2)
mycell.CellType = New FarPoint.Web.Spread.CheckBoxCellType()
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Cell Class
Cell Members
Border Class
StyleName Property
NamedStyle Class

 

 


Copyright © GrapeCity, inc. All rights reserved.