xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::text_box Class Referencefinal
Inheritance diagram for xtd::forms::native::text_box:
xtd::static_object

Definition

Contains text box native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static size_t selection_length (intptr control)
 Gets the number of characters selected in the text box.
 
static size_t selection_start (intptr control)
 Gets o the starting point of text selected in the text box.
 
static void append (intptr control, const xtd::string &text)
 Appends text to the current text of a text box.
 
static void select (intptr control, size_t start, size_t length)
 Selects a range of text in the text box.
 
static xtd::string text (intptr control)
 Gets text associate to the text box.
 
static void text (intptr control, const xtd::string &text)
 Sets text associate to the text box.
 
static void placeholder_text (intptr control, const xtd::string &text)
 Sets the placeholder text (aka hint) associate to the text box.
 

Member Function Documentation

◆ selection_length()

static size_t xtd::forms::native::text_box::selection_length ( intptr  control)
staticprotected

Gets the number of characters selected in the text box.

Parameters
controlText box window handle.
Returns
The number of characters selected in the text box.
Warning
Internal use only

◆ selection_start()

static size_t xtd::forms::native::text_box::selection_start ( intptr  control)
staticprotected

Gets o the starting point of text selected in the text box.

Parameters
controlText box window handle.
Returns
The starting position of text selected in the text box.
Warning
Internal use only

◆ append()

static void xtd::forms::native::text_box::append ( intptr  control,
const xtd::string text 
)
staticprotected

Appends text to the current text of a text box.

Parameters
controlText box window handle.
valueThe text to append to the current contents of the text box.
Warning
Internal use only

◆ select()

static void xtd::forms::native::text_box::select ( intptr  control,
size_t  start,
size_t  length 
)
staticprotected

Selects a range of text in the text box.

Parameters
controlText box window handle.
startThe position of the first character in the current text selection within the text box.
lengthThe number of characters to select.
Warning
Internal use only

◆ text() [1/2]

static xtd::string xtd::forms::native::text_box::text ( intptr  control)
staticprotected

Gets text associate to the text box.

Parameters
controlText box window handle.
Returns
The text string.
Warning
Internal use only

◆ text() [2/2]

static void xtd::forms::native::text_box::text ( intptr  control,
const xtd::string text 
)
staticprotected

Sets text associate to the text box.

Parameters
controlText box window handle.
textThe text string.
Warning
Internal use only

◆ placeholder_text()

static void xtd::forms::native::text_box::placeholder_text ( intptr  control,
const xtd::string text 
)
staticprotected

Sets the placeholder text (aka hint) associate to the text box.

Returns
The text string.
Warning
Internal use only

The documentation for this class was generated from the following file: