[Serializable()]
class btnType:FarPoint.Web.Spread.ButtonCellType
{
public override ControlGetEditorControl(string id,TableCell parent,FarPoint.Web.Spread.Appearance style,FarPoint.Web.Spread.Inset margin,object v,bool ul)
{
return Base.GetEditorControl(id,parent,style,margin,v,ul);
}
public override ControlPaintCell(string id,TableCell parent,FarPoint.Web.Spread.Appearance style,FarPoint.Web.Spread.Inset margin,object v,bool ul)
{
return Base.PaintCell(id,parent,style,margin,v,ul);
}
}
private void Page_Load(object sender,System.EventArgs e)
{
btnType mybtn=new btnType();
FpSpread1.ActiveSheetView.Cells[0,0].CellType=mybtn;
}