Provides data for the.
draw_item
event.
- Header
#include <xtd/forms/draw_item_event_args>
- Namespace
- xtd::forms
- Library
- xtd.forms
|
| draw_item_event_args (xtd::drawing::graphics &graphics, const xtd::drawing::font &font, const xtd::drawing::rectangle &rect, size_t index, xtd::forms::draw_item_state state) |
| Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within. More...
|
|
| draw_item_event_args (xtd::drawing::graphics &graphics, const xtd::drawing::font &font, const xtd::drawing::rectangle &rect, size_t index, xtd::forms::draw_item_state state, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_core) |
| Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, foreground color, background color, surface to draw on, and the bounds to draw within. More...
|
|
◆ draw_item_event_args() [1/2]
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within.
- Parameters
-
graphics | The xtd::drawing::graphics surface on which to draw. |
font | The xtd::drawing::font to use, usually the parent control's Font property. |
rect | The xtd::drawing::rectangle bounds to draw within. |
index | The xtd::control::control_collection index value of the item that is being drawn. |
state | The control's xtd::forms::drawItem_state information. |
◆ draw_item_event_args() [2/2]
Initializes a new instance of the xtd::forms::draw_item_event_args class for the specified control with the specified font, state, foreground color, background color, surface to draw on, and the bounds to draw within.
- Parameters
-
graphics | The xtd::drawing::graphics surface on which to draw. |
font | The xtd::drawing::font to use, usually the parent control's Font property. |
rect | The xtd::drawing::rectangle bounds to draw within. |
index | The xtd::control::control_collection index value of the item that is being drawn. |
state | The control's xtd::forms::drawItem_state information. |
◆ back_color()
Gets the background color of the item that is being drawn.
- Returns
- The background xtd::drawing::color of the item that is being drawn.
◆ bounds()
Gets the rectangle that represents the bounds of the item that is being drawn.
- Returns
- The xtd::drawing::rectangle that represents the bounds of the item that is being drawn.
◆ font()
Gets the font that is assigned to the item being drawn.
- Returns
- The xtd::drawing::font that is assigned to the item being drawn.
◆ fore_color()
Gets the foreground color of the of the item being drawn.
- Returns
- The foreground xtd::drawing::color of the item being drawn.
◆ graphics()
◆ index()
size_t xtd::forms::draw_item_event_args::index |
( |
| ) |
const |
|
noexcept |
Gets the index value of the item that is being drawn.
- Returns
- The numeric value that represents the xtd::forms::control::control_collection::operator [] value of the item being drawn.
◆ state()
The documentation for this class was generated from the following file: