메소드 | 설명 | |
---|---|---|
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 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 OnSelectAll ( |
||
from | Source control. | |
리턴 | void |
public TextBox ( |
||
parent | Parent control. | |
리턴 | System |