[]
Renders a string and an image into a Graphics object using this style.
public void Render(Graphics g, Rectangle rc, string str, Image img, DrawCellFlags flags, DrawColorMode colorMode = DrawColorMode.Color)
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. |
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.
Renders a string and an image into a Graphics object using this style.
public void Render(Graphics g, Rectangle rc, string str, Image img, DrawColorMode colorMode = DrawColorMode.Color)
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. |
Renders a string and an image into a Graphics object using this style.
public void Render(Graphics g, Rectangle rc, string str, DrawColorMode colorMode = DrawColorMode.Color)
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. |
Renders a string and an image into a Graphics object using this style.
public void Render(Graphics g, Rectangle rc, Image img, DrawColorMode colorMode = DrawColorMode.Color)
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. |