FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetEditor Method |
'Declaration Public Overridable Function GetEditor( _ ByVal row As Integer, _ ByVal column As Integer _ ) As IEditor
FarPoint.Web.Spread.SheetView sv=null; FarPoint.Web.Spread.Cell mycell; FarPoint.Web.Spread.Editor.IEditor ed; FarPoint.Web.Spread.Renderer.IRenderer rend; FarPoint.Web.Spread.Renderer.IFormatter fmt; sv=FpSpread1.ActiveSheetView; FpSpread1.Sheets[0].ColumnCount=7; FpSpread1.Sheets[0].RowCount=10; ed=new FarPoint.Web.Spread.GeneralCellType(); rend=new FarPoint.Web.Spread.CurrencyCellType(); fmt=new FarPoint.Web.Spread.DoubleCellType(); mycell=FpSpread1.Cells[0,0]; mycell.Editor=ed; mycell.Renderer=rend; mycell.Formatter=fmt; ListBox1.Items.Add(Convert.ToString(sv.GetEditor(0,0))); ListBox1.Items.Add(Convert.ToString(sv.GetRenderer(0,0))); ListBox1.Items.Add(Convert.ToString(sv.GetFormatter(0,0)));
Dim sv As FarPoint.Web.Spread.SheetView Dim mycell As FarPoint.Web.Spread.Cell Dim ed As FarPoint.Web.Spread.Editor.IEditor Dim rend As FarPoint.Web.Spread.Renderer.IRenderer Dim fmt As FarPoint.Web.Spread.Renderer.IFormatter sv=FpSpread1.ActiveSheetView FpSpread1.Sheets(0).ColumnCount=7 FpSpread1.Sheets(0).RowCount=10 ed=New FarPoint.Web.Spread.GeneralCellType() rend=New FarPoint.Web.Spread.CurrencyCellType() fmt=New FarPoint.Web.Spread.DoubleCellType() mycell=FpSpread1.Cells(0,0) mycell.Editor=ed mycell.Renderer=rend mycell.Formatter=fmt ListBox1.Items.Add(Convert.ToString(sv.GetEditor(0,0))) ListBox1.Items.Add(Convert.ToString(sv.GetRenderer(0,0))) ListBox1.Items.Add(Convert.ToString(sv.GetFormatter(0,0)))
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