Spread for ASP.NET 11 Product Documentation
Editor Property (Cell)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : Editor Property
Gets or sets the editor for a cell.
Syntax
'Declaration
 
Public Property Editor As IEditor
'Usage
 
Dim instance As Cell
Dim value As IEditor
 
instance.Editor = value
 
value = instance.Editor
public IEditor Editor {get; set;}

Property Value

IEditor object containing the editor for this 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 the editor to use.

Example
This example sets up a spreadsheet with 7 columns and 10 rows and creates a Cell object and an IEditor object. The IEditor object is declared as a GeneralCellType object and is then used as the editor for the Cell object. To verify this, the Cell objects Editor is returned in a text box.
FpSpread1.Sheets[0].ColumnCount=7;
FpSpread1.Sheets[0].RowCount=50;
FarPoint.Web.Spread.Cell mycell;
FarPoint.Web.Spread.Editor.IEditor ed;
ed=new FarPoint.Web.Spread.GeneralCellType();
mycell=FpSpread1.Cells[0,0];
mycell.Editor=ed;
TextBox1.Text=Convert.ToString(mycell.Editor);
FpSpread1.Sheets(0).ColumnCount=7
FpSpread1.Sheets(0).RowCount=10
Dim mycell As FarPoint.Web.Spread.Cell
Dim ed As FarPoint.Web.Spread.Editor.IEditor
ed=New FarPoint.Web.Spread.GeneralCellType()
mycell=FpSpread1.Cells(0,0)
mycell.Editor=ed
TextBox1.Text=Convert.ToString(mycell.Editor)
See Also

Reference

Cell Class
Cell Members
IEditor Interface
StyleName Property
NamedStyle Class