8#include <xtd/argument_out_of_range_exception>
9#include <xtd/bit_converter>
Contains xtd::forms::border_sides enum class.
Contains xtd::forms::border_style enum class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
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
virtual bool word_wrap() const noexcept
Indicates whether a multiline text box control automatically wraps words to the beginning of the next...
forms::create_params create_params() const noexcept override
Gets the required creation parameters when the control handle is created.
void select_all()
Selects all text in the text box.
forms::cursor default_cursor() const noexcept override
Gets the default cursor for the control.
virtual void on_read_only_changed(const event_args &e)
Raises the text_box_base::read_only_changed event.
virtual void on_border_style_changed(const event_args &e)
Raises the text_box_base::border_style_changed event.
event< text_box_base, event_handler > border_style_changed
Occurs when the value of the accepts_tab border_style has changed.
Definition text_box_base.hpp:151
virtual void on_accepts_tab_changed(const event_args &e)
Raises the text_box_base::accepts_tab_changed event.
xtd::array< xtd::string > lines() const noexcept
Gets the lines of text in a text box control.
virtual void on_multiline_changed(const event_args &e)
Raises the text_box_base::text_box_base::multiline_changed event.
virtual void select(size_t start, size_t length)
Selects a range of text in the text box.
text_box_base()
initializes a new instance of the text_box_base class.
virtual bool read_only() const noexcept
Gets a value indicating whether text in the text box is read-only.
event< text_box_base, event_handler > multiline_changed
Occurs when the value of the accepts_tab border_style has changed.
Definition text_box_base.hpp:155
event< text_box_base, event_handler > read_only_changed
Occurs when the value of the read_only property has changed.
Definition text_box_base.hpp:159
virtual size_t selection_start() const noexcept
Gets o the starting point of text selected in the text box.
virtual bool multiline() const noexcept
Gets a value indicating whether this is a multiline text box control.
virtual forms::border_style border_style() const noexcept
Gets the border type of the text box control.
void clear()
Clears all text from the text box control.
event< text_box_base, event_handler > accepts_tab_changed
Occurs when the value of the accepts_tab property has changed.
Definition text_box_base.hpp:147
virtual void append_text(const xtd::string &value)
Appends text to the current text of a text box.
virtual size_t selection_length() const noexcept
Gets the number of characters selected in the text box.
virtual forms::border_sides border_sides() const noexcept
Gets the border sides for the control.
virtual bool accepts_tab() const noexcept
Gets a value indicating whether pressing the TAB key in a multiline text box control types a TAB char...
Contains xtd::forms::control control.
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
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
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