97 [[nodiscard]] auto
text() const noexcept -> const
xtd::
string& override;
Contains xtd::forms::border_style enum class.
Contains xtd::forms::character_casing enum class.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:23
Implements the basic functionality required by text controls.
Definition text_box_base.hpp:26
text_box_base()
initializes a new instance of the text_box_base class.
auto default_back_color() const noexcept -> xtd::drawing::color override
Gets the default background color of the control.
auto create_params() const noexcept -> xtd::forms::create_params override
Gets the required creation parameters when the control handle is created.
virtual auto character_casing() const noexcept -> xtd::forms::character_casing
Gets whether the text_box control modifies the case of characters as they are typed.
auto default_fore_color() const noexcept -> xtd::drawing::color override
Gets the default foreground color of the control.
auto placeholder_text() const noexcept -> const xtd::string &
Gets the text that is displayed when the control has no text and does not have the focus.
text_box()
initializes a new instance of the text_box class.
xtd::event< text_box, xtd::event_handler > accepts_return_changed
Occurs when the value of the accepts_return property has changed.
Definition text_box.hpp:217
virtual auto password_char() const noexcept -> xtd::char32
Gets the character used to mask characters of a password in a single-line TextBox control.
auto append_text(const xtd::string &value) -> void override
Appends text to the current text of a text box.
auto on_handle_created(const xtd::event_args &e) -> void override
Raises the xtd::forms::control::handle_created event.
virtual auto on_accepts_return_changed(const xtd::event_args &e) -> void
Raises the text_box::accepts_return_changed event.
auto selection_start() const noexcept -> xtd::usize override
Gets o the starting point of text selected in the text box.
virtual auto use_system_password_char() const noexcept -> bool
Gets a value indicating whether the text in the TextBox control should appear as the default password...
auto measure_control() const noexcept -> xtd::drawing::size override
Measure this control.
static auto create() -> text_box
A factory to create an xtd::forms::text_box.
auto wnd_proc(xtd::forms::message &message) -> void override
Processes Windows messages.
auto select(xtd::usize start, xtd::usize length) -> void override
Selects a range of text in the text box.
auto on_text_changed(const xtd::event_args &e) -> void override
Raises the xtd::forms::control::text_changed event.
auto text() const noexcept -> const xtd::string &override
Gets the text associated with this control.
virtual auto accepts_return() const noexcept -> bool
Gets a value indicating whether pressing ENTER in a multiline text_box control creates a new line of ...
auto selection_length() const noexcept -> xtd::usize override
Gets the number of characters selected in the text box.
generic_event_handler< const xtd::event_args & > event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:24
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
constexpr auto length() const noexcept -> size_type
Returns the length of the current read_only_span.
Definition read_only_span.hpp:213
Contains xtd::forms::text_box_base control.