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


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)
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
IEditor Interface
StyleName Property
NamedStyle Class

 

 


Copyright © GrapeCity, inc. All rights reserved.