Spread ASP.NET 6.0 Product Documentation
Editor Property
See Also  Example Send Feedback
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.Cellmycell;
FarPoint.Web.Spread.Editor.IEditored;
ed=newFarPoint.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
DimmycellAsFarPoint.Web.Spread.Cell
DimedAsFarPoint.Web.Spread.Editor.IEditor
ed=NewFarPoint.Web.Spread.GeneralCellType()
mycell=FpSpread1.Cells(0,0)
mycell.Editor=ed
TextBox1.Text=Convert.ToString(mycell.Editor)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.