Spread for ASP.NET 9.0 Product Documentation
Renderer Property (Row)
Example 


Gets or sets the default renderer for cells in this row.
Syntax
'Declaration
 
Public Property Renderer As IRenderer
'Usage
 
Dim instance As Row
Dim value As IRenderer
 
instance.Renderer = value
 
value = instance.Renderer
public IRenderer Renderer {get; set;}

Property Value

IRenderer object containing the renderer for cells in this row
Example
This example creates a Row object, a CheckBoxEditor object, and a CheckBoxRenderer object for the active sheet of a sheet. The CheckBoxEditor is assigned to the Row object's Editor property, and the CheckBoxRenderer is assigned to the Row object's Renderer property. The Row object is then assigned to the first row of the sheet, such that all cells in the first row are check boxes. The Editor value of the Row object is returned to a text box.
FarPoint.Web.Spread.Row myrow; 
FarPoint.Web.Spread.Editor.CheckBoxEditor edit = new FarPoint.Web.Spread.Editor.CheckBoxEditor(); 
FarPoint.Web.Spread.Renderer.CheckBoxRenderer rend = new FarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif", "img/unchecked.gif"); 
myrow = FpSpread1.ActiveSheetView.Rows[0]; 
myrow.Editor = edit;
myrow.Renderer = rend; 
TextBox1.Text = Convert.ToString(myrow.Editor);
Dim myrow As FarPoint.Web.Spread.Row
Dim edit As New FarPoint.Web.Spread.Editor.CheckBoxEditor()
Dim rend As New FarPoint.Web.Spread.Renderer.CheckBoxRenderer("img/checked.gif", "img/unchecked.gif")    
myrow = FpSpread1.ActiveSheetView.Rows(0)
myrow.Editor = edit
myrow.Renderer = rend
TextBox1.Text = Convert.ToString(myrow.Editor)
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

Row Class
Row Members
IRenderer Interface

 

 


Copyright © GrapeCity, inc. All rights reserved.