Spread for ASP.NET 11 Product Documentation
Renderer Property (Cell)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : Renderer Property
Gets or sets the renderer for a cell.
Syntax
'Declaration
 
Public Property Renderer As IRenderer
'Usage
 
Dim instance As Cell
Dim value As IRenderer
 
instance.Renderer = value
 
value = instance.Renderer
public IRenderer Renderer {get; set;}

Property Value

IRenderer object containing the renderer 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 renderer to use.

Example
This example creates a Cell object and an IRenderer object. The IRenderer object is declared as a CheckBoxRenderer object and is then used as the renderer for the Cell object. To verify this, the Cell objects Renderer is returned in a text box.
FarPoint.Web.Spread.Cell mycell;
FarPoint.Web.Spread.Renderer.CheckBoxRenderer rend=new FarPoint.Web.Spread.Renderer.CheckBoxRenderer();
FarPoint.Web.Spread.Editor.CheckBoxEditor edit=new FarPoint.Web.Spread.Editor.CheckBoxEditor();
mycell=FpSpread1.Cells[0,0];
mycell.Renderer=rend;
mycell.Editor=edit;
TextBox1.Text=Convert.ToString(rend);
Dim mycell As FarPoint.Web.Spread.Cell
Dim rend As New FarPoint.Web.Spread.Renderer.CheckBoxRenderer()
Dim edit As New FarPoint.Web.Spread.Editor.CheckBoxEditor()
mycell=FpSpread1.Cells(0,0)
mycell.Renderer=rend
mycell.Editor=edit
TextBox1.Text=Convert.ToString(rend)
See Also

Reference

Cell Class
Cell Members
IRenderer Interface
StyleName Property
NamedStyle Class