Represents the Renderer property (index of 10) for the renderer of the sheet style.
Syntax
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 Basic | Copy 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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also