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


Glossary Item Box

Gets or sets the default renderer for cells in this column.

Syntax

Visual Basic (Declaration) 
Public Property Renderer As IRenderer
Visual Basic (Usage)Copy Code
Dim instance As Column
Dim value As IRenderer
 
instance.Renderer = value
 
value = instance.Renderer
C# 
public IRenderer Renderer {get; set;}

Property Value

IRenderer object containing the renderer for cells in this column

Example

This example creates a Column object, a CheckBoxEditor object and a CheckBoxRenderer object for the active sheet of a spreadsheet. The CheckBoxEditor is assigned to the Column objects Editor property and the CheckBoxRenderer is assigned to the Column objects Renderer property. The Column object is then assigned to the first column of the spreadsheet, such that all cells in the first column are check boxes. The Editor value of the Column object is returned to a text box.
C#Copy Code
FarPoint.Web.Spread.Columnmycol;
FarPoint.Web.Spread.Editor.CheckBoxEditoredit=newFarPoint.Web.Spread.Editor.CheckBoxEditor();
FarPoint.Web.Spread.Renderer.CheckBoxRendererrend=newFarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif","img/unchecked.gif");
mycol=FpSpread1.ActiveSheetView.Columns[0];
mycol.Editor=edit;
mycol.Renderer=rend;
TextBox1.Text=Convert.ToString(mycol.Editor);
Visual BasicCopy Code
DimmycolAsFarPoint.Web.Spread.Column
DimeditAsNewFarPoint.Web.Spread.Editor.CheckBoxEditor()
DimrendAsNewFarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif","img/unchecked.gif")
mycol=FpSpread1.ActiveSheetView.Columns(0)
mycol.Editor=edit
mycol.Renderer=rend
TextBox1.Text=Convert.ToString(mycol.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.