xtd 0.2.0
Loading...
Searching...
No Matches
item_check_event_args.h
Go to the documentation of this file.
1
4#pragma once
5
6#include "check_state.h"
7#include <xtd/event_args>
8#include <xtd/size_object>
9#include <cstdint>
10
12namespace xtd {
14 namespace forms {
16 class control;
18
29 public:
34
36
44
46
51 check_state current_value() const noexcept {return current_value_;}
52
56 size_t index() const noexcept {return index_;}
57
61 check_state new_value() const noexcept {return new_value_;}
67
68 private:
69 size_t index_ = size_object::max_value;
71 check_state current_value_ = check_state::unchecked;
72 };
73 }
74}
Contains xtd::forms::check_state enum class.
static constexpr type_t max_value
Represents the largest possible value of type_t. This field is constant.
Definition box_integer.h:65
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the item_check event of the checked_list_box and list_view controls.
Definition item_check_event_args.h:28
size_t index() const noexcept
Gets the zero-based index of the item to change.
Definition item_check_event_args.h:56
void new_value(check_state new_value)
Gets a value indicating whether to set the check box for the item to be checked, unchecked,...
Definition item_check_event_args.h:65
item_check_event_args(size_t index, check_state new_value, check_state current_value)
Initializes a new instance of the item_check_event_args class.
Definition item_check_event_args.h:42
check_state new_value() const noexcept
Gets a value indicating whether to set the check box for the item to be checked, unchecked,...
Definition item_check_event_args.h:61
check_state current_value() const noexcept
Gets a value indicating the current state of the item's check box.
Definition item_check_event_args.h:51
@ control
The left or right CTRL modifier key.
check_state
Specifies the state of a control, such as a check box, that can be checked, unchecked,...
Definition check_state.h:21
@ indeterminate
The control is indeterminate. An indeterminate control generally has a shaded appearance.
@ unchecked
The control is unchecked.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10