FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / CellStyle Class / Render Method / Render(Graphics,Rectangle,String,Image,DrawCellFlags,DrawColorMode) 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.
Rendering color mode.

In This Topic
    Render(Graphics,Rectangle,String,Image,DrawCellFlags,DrawColorMode) Method
    In This Topic
    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, _
       Optional ByVal colorMode As DrawColorMode _
    ) 

    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.
    colorMode
    Rendering color mode.
    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.
    See Also