Spread for ASP.NET 7.0 Product Documentation
Editor Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : Editor Property


Glossary Item Box

Gets or sets the editor for a cell.

Syntax

Visual Basic (Declaration) 
Public Property Editor As IEditor
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As IEditor
 
instance.Editor = value
 
value = instance.Editor
C# 
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.
C#Copy Code
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);
Visual BasicCopy Code
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 Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.