[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.CellStyle.Render

Render Method

Render(Graphics, Rectangle, string, Image, DrawCellFlags, DrawColorMode)

Renders a string and an image into a Graphics object using this style.

Declaration
public void Render(Graphics g, Rectangle rc, string str, Image img, DrawCellFlags flags, DrawColorMode colorMode = DrawColorMode.Color)
Parameters
Type Name Description
Graphics g

Graphics object to render into.

Rectangle rc

Area where the element will be displayed.

string str

Text to render.

Image img

Image to render.

DrawCellFlags flags

Combination of DrawCellFlags that determines which elements will be rendered.

DrawColorMode 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.

Render(Graphics, Rectangle, string, Image, DrawColorMode)

Renders a string and an image into a Graphics object using this style.

Declaration
public void Render(Graphics g, Rectangle rc, string str, Image img, DrawColorMode colorMode = DrawColorMode.Color)
Parameters
Type Name Description
Graphics g

Graphics object to render into.

Rectangle rc

Area where the element will be displayed.

string str

Text to render.

Image img

Image to render.

DrawColorMode colorMode

Rendering color mode.

Render(Graphics, Rectangle, string, DrawColorMode)

Renders a string and an image into a Graphics object using this style.

Declaration
public void Render(Graphics g, Rectangle rc, string str, DrawColorMode colorMode = DrawColorMode.Color)
Parameters
Type Name Description
Graphics g

Graphics object to render into.

Rectangle rc

Area where the element will be displayed.

string str

Text to render.

DrawColorMode colorMode

Rendering color mode.

Render(Graphics, Rectangle, Image, DrawColorMode)

Renders a string and an image into a Graphics object using this style.

Declaration
public void Render(Graphics g, Rectangle rc, Image img, DrawColorMode colorMode = DrawColorMode.Color)
Parameters
Type Name Description
Graphics g

Graphics object to render into.

Rectangle rc

Area where the element will be displayed.

Image img

Image to render.

DrawColorMode colorMode

Rendering color mode.