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
31 public:
36
38
46
48
53 check_state current_value() const noexcept {return current_value_;}
54
58 size_t index() const noexcept {return index_;}
59
63 check_state new_value() const noexcept {return new_value_;}
69
70 private:
71 size_t index_ = size_object::max_value;
73 check_state current_value_ = check_state::unchecked;
74 };
75 }
76}
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:67
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:30
size_t index() const noexcept
Gets the zero-based index of the item to change.
Definition item_check_event_args.h:58
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:67
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:44
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:63
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:53
@ 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:23
@ 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