FlexGrid for WinForms
Render(Graphics,Rectangle,String,Image,DrawCellFlags) Method



System.Drawing.Graphics object to render into.
Area where the element will be displayed.
Text to render.
Image to render.
Combination of DrawCellFlags that determines which elements will be rendered.
Renders a string and an image into a System.Drawing.Graphics object using this style.
Syntax
'Declaration
 
Public Overloads Sub Render( _
   ByVal g As Graphics, _
   ByVal rc As Rectangle, _
   ByVal str As String, _
   ByVal img As Image, _
   ByVal flags As DrawCellFlags _
) 
'Usage
 
Dim instance As CellStyle
Dim g As Graphics
Dim rc As Rectangle
Dim str As String
Dim img As Image
Dim flags As DrawCellFlags
 
instance.Render(g, rc, str, img, flags)
public void Render( 
   Graphics g,
   Rectangle rc,
   string str,
   Image img,
   DrawCellFlags flags
)

Parameters

g
System.Drawing.Graphics object to render into.
rc
Area where the element will be displayed.
str
Text to render.
img
Image to render.
flags
Combination of DrawCellFlags that determines which elements will be rendered.
Remarks
This method allows using CellStyle objects to render objects outside the grid. It can be useful when implementing owner-drawn applications and style editors for example.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CellStyle Class
CellStyle Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback