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


Glossary Item Box

Represents the Renderer property (index of 10) for the renderer of the sheet style.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Renderer As SheetStyleProperty
Visual Basic (Usage)Copy Code
Dim value As SheetStyleProperty
 
value = SheetStyleProperty.Renderer
C# 
public static readonly SheetStyleProperty Renderer

Example

C#Copy Code
<Serializable()> 
public class rend : FarPoint.Web.Spread.GeneralCellType
{
        public override Control PaintCell(string id, System.Web.UI.WebControls.TableCell parent, FarPoint.Web.Spread.Appearance
style, FarPoint.Web.Spread.Inset margin, object value, bool upperLevel) 
        {	
	style.BackColor = Color.Tan;
	return base.PaintCell(id, parent, style, margin, value, upperLevel);
         }
}

FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo("DataAreaDefault");
si.Renderer = new rend();
FpSpread1.ActiveSheetView.DefaultStyle = si;
bool b;
b = si.IsPropertySet(FarPoint.Web.Spread.SheetStyleProperty.Renderer);
if (b)
{
    Response.Write("The renderer has been set.");
}
Visual BasicCopy Code
<Serializable()> 
Public Class rend
Inherits FarPoint.Web.Spread.GeneralCellType

Public Overrides Function PaintCell(ByVal id As String, ByVal parent As System.Web.UI.WebControls.TableCell, ByVal style As
FarPoint.Web.Spread.Appearance, ByVal margin As FarPoint.Web.Spread.Inset, ByVal value As Object, ByVal upperLevel As Boolean)
As System.Web.UI.Control
     style.BackColor = Color.Tan
     Return MyBase.PaintCell(id, parent, style, margin, value, upperLevel)
End Function

End Class

Dim s As FarPoint.Web.Spread.SheetStyleProperty
Dim si As New FarPoint.Web.Spread.StyleInfo("DataAreaDefault")
si.Renderer = New rend
FpSpread1.ActiveSheetView.DefaultStyle = si
Dim b As Boolean
If IsPostBack Then
    b = si.IsPropertySet(s.Renderer)
    If b Then
        Response.Write("The renderer has been set.")
    End If
End If

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.