97 const
xtd::
string&
text() const noexcept 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:21
text_box_base()
initializes a new instance of the text_box_base class.
drawing::color default_back_color() const noexcept override
Gets the default background color of the control.
virtual xtd::forms::character_casing character_casing() const noexcept
Gets whether the text_box control modifies the case of characters as they are typed.
drawing::color default_fore_color() const noexcept override
Gets the default foreground color of the control.
virtual char32 password_char() const noexcept
Gets the character used to mask characters of a password in a single-line TextBox control.
size_t selection_start() const noexcept override
Gets o the starting point of text selected in the text box.
void wnd_proc(message &message) override
Processes Windows messages.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
void on_handle_created(const event_args &e) override
Raises the xtd::forms::control::handle_created event.
text_box()
initializes a new instance of the text_box class.
drawing::size measure_control() const noexcept override
Measure this control.
void append_text(const xtd::string &value) override
Appends text to the current text of a text box.
event< text_box, event_handler > accepts_return_changed
Occurs when the value of the accepts_return property has changed.
Definition text_box.hpp:217
virtual bool accepts_return() const noexcept
Gets a value indicating whether pressing ENTER in a multiline text_box control creates a new line of ...
const xtd::string & placeholder_text() const noexcept
Gets the text that is displayed when the control has no text and does not have the focus.
static text_box create()
A factory to create an xtd::forms::text_box.
size_t selection_length() const noexcept override
Gets the number of characters selected in the text box.
virtual bool use_system_password_char() const noexcept
Gets a value indicating whether the text in the TextBox control should appear as the default password...
virtual void on_accepts_return_changed(const event_args &e)
Raises the text_box::accepts_return_changed event.
const xtd::string & text() const noexcept override
Gets the text associated with this control.
void on_text_changed(const event_args &e) override
Raises the xtd::forms::control::text_changed event.
void select(size_t start, size_t length) override
Selects a range of text in the text box.
forms::create_params create_params() const noexcept override
Gets the required creation parameters when the control handle is created.
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
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
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 size_type length() const noexcept
Returns the length of the current read_only_span.
Definition read_only_span.hpp:229
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::text_box_base control.