Gets or sets
IRender to perform basic painting operations.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public IRender Render { get; set; } |
Visual Basic |
---|
Public Property Render As IRender
Get
Set |
Visual C++ |
---|
public:
property IRender^ Render {
IRender^ get ();
void set (IRender^ value);
} |
F# |
---|
member Render : IRender with get, set
|
Property Value
Type:
IRenderThe
IRender.
Examples
| Copy |
---|
public void CellCustomDraw(Grid grid)
{
grid.PaintCell += delegate(object sender, PaintCellEventArgs e)
{
Color startColor = Color.LightGray;
Color endColor = Color.LightSlateGray;
if (e.Cell.Row != null && e.Cell.Row.Selected)
{
startColor = PaintHelper.AlphaBlend(startColor, grid.Selection.Color);
endColor = PaintHelper.AlphaBlend(endColor, grid.Selection.Color);
}
Appearance appearance = new Appearance(SystemColors.GrayText, startColor, true, endColor, GradientDirection.Vertical);
e.Render.DrawCaption(appearance, ElementState.Normal, e.Cell.VirtualBounds, BorderSide.All, e.Graphics);
e.Parts &= e.Parts ^ (PaintPart.Background | PaintPart.Borders);
e.Appearance.ForeColor = Color.Yellow;
e.PaintAll();
};
} |
See Also