Spread ASP.NET 6.0 Product Documentation
Renderer Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Cell Class : Renderer Property


Glossary Item Box

Gets or sets the renderer for a cell.

Syntax

Visual Basic (Declaration) 
Public Property Renderer As IRenderer
Visual Basic (Usage)Copy Code
Dim instance As Cell
Dim value As IRenderer
 
instance.Renderer = value
 
value = instance.Renderer
C# 
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.
C#Copy Code
FarPoint.Web.Spread.Cellmycell;
FarPoint.Web.Spread.Renderer.CheckBoxRendererrend=newFarPoint.Web.Spread.Renderer.CheckBoxRenderer();
FarPoint.Web.Spread.Editor.CheckBoxEditoredit=newFarPoint.Web.Spread.Editor.CheckBoxEditor();
mycell=FpSpread1.Cells[0,0];
mycell.Renderer=rend;
mycell.Editor=edit;
TextBox1.Text=Convert.ToString(rend);
Visual BasicCopy Code
DimmycellAsFarPoint.Web.Spread.Cell
DimrendAsNewFarPoint.Web.Spread.Renderer.CheckBoxRenderer()
DimeditAsNewFarPoint.Web.Spread.Editor.CheckBoxEditor()
mycell=FpSpread1.Cells(0,0)
mycell.Renderer=rend
mycell.Editor=edit
TextBox1.Text=Convert.ToString(rend)

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.