Метод | Описание | |
---|---|---|
DeleteText ( int startPos, int length ) : void |
Deletes text.
|
|
EraseSelection ( ) : void |
Deletes selected text.
|
|
GetSelection ( ) : String |
Returns currently selected text.
|
|
TextBox ( |
Initializes a new instance of the TextBox class.
|
Метод | Описание | |
---|---|---|
IsTextAllowed ( String text, int position ) : bool |
Determines whether the control can insert text at a given cursor position.
|
|
Layout ( Skins skin ) : void |
Lays out the control's interior according to alignment, padding, dock etc.
|
|
MakeCaretVisible ( ) : void | ||
OnChar ( char chr ) : bool |
Handler for character input event.
|
|
OnCopy ( |
Handler for Copy event.
|
|
OnCut ( |
Handler for Cut event.
|
|
OnKeyBackspace ( bool down ) : bool |
Handler for Backspace keyboard event.
|
|
OnKeyDelete ( bool down ) : bool |
Handler for Delete keyboard event.
|
|
OnKeyEnd ( bool down ) : bool |
Handler for End keyboard event.
|
|
OnKeyHome ( bool down ) : bool |
Handler for Home keyboard event.
|
|
OnKeyLeft ( bool down ) : bool |
Handler for Left Arrow keyboard event.
|
|
OnKeyReturn ( bool down ) : bool |
Handler for Return keyboard event.
|
|
OnKeyRight ( bool down ) : bool |
Handler for Right Arrow keyboard event.
|
|
OnMouseClickedLeft ( int x, int y, bool down ) : void |
Handler invoked on mouse click (left) event.
|
|
OnMouseDoubleClickedLeft ( int x, int y ) : void |
Handler invoked on mouse double click (left) event.
|
|
OnMouseMoved ( int x, int y, int dx, int dy ) : void |
Handler invoked on mouse moved event.
|
|
OnPaste ( |
Handler for Paste event.
|
|
OnReturn ( ) : void |
Handler for the return key.
|
|
OnSelectAll ( |
Handler for Select All event.
|
|
OnTextChanged ( ) : void |
Handler for text changed event.
|
|
RefreshCursorBounds ( ) : void | ||
Render ( Skins skin ) : void |
Renders the control using specified skin.
|
|
RenderFocus ( Skins skin ) : void |
Renders the focus overlay.
|
Метод | Описание | |
---|---|---|
InsertText ( String text ) : void |
Inserts text at current cursor position, erasing selection if any.
|
public DeleteText ( int startPos, int length ) : void | ||
startPos | int | Starting cursor position. |
length | int | Length in characters. |
Результат | void |
protected IsTextAllowed ( String text, int position ) : bool | ||
text | String | Text to check. |
position | int | Cursor position. |
Результат | bool |
protected Layout ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
protected OnChar ( char chr ) : bool | ||
chr | char | Character typed. |
Результат | bool |
protected OnCopy ( |
||
from | Source control. | |
Результат | void |
protected OnCut ( |
||
from | Source control. | |
Результат | void |
protected OnKeyBackspace ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyDelete ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyEnd ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyHome ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyLeft ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyReturn ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnKeyRight ( bool down ) : bool | ||
down | bool | Indicates whether the key was pressed or released. |
Результат | bool |
protected OnMouseClickedLeft ( int x, int y, bool down ) : void | ||
x | int | X coordinate. |
y | int | Y coordinate. |
down | bool | If set to |
Результат | void |
protected OnMouseDoubleClickedLeft ( int x, int y ) : void | ||
x | int | X coordinate. |
y | int | Y coordinate. |
Результат | void |
protected OnMouseMoved ( int x, int y, int dx, int dy ) : void | ||
x | int | X coordinate. |
y | int | Y coordinate. |
dx | int | X change. |
dy | int | Y change. |
Результат | void |
protected OnPaste ( |
||
from | Source control. | |
Результат | void |
protected OnSelectAll ( |
||
from | Source control. | |
Результат | void |
protected Render ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
protected RenderFocus ( Skins skin ) : void | ||
skin | Skins | Skin to use. |
Результат | void |
public TextBox ( |
||
parent | Parent control. | |
Результат | System |