C# 클래스 Flood.GUI.Controls.TextBox

Text box (editable).
상속: Label
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

메소드 설명
DeleteText ( int startPos, int length ) : void

Deletes text.

EraseSelection ( ) : void

Deletes selected text.

GetSelection ( ) : String

Returns currently selected text.

TextBox ( Control parent ) : System

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 ( Control from ) : void

Handler for Copy event.

OnCut ( Control from ) : void

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 ( Control from ) : void

Handler for Paste event.

OnReturn ( ) : void

Handler for the return key.

OnSelectAll ( Control from ) : void

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.

메소드 상세

DeleteText() 공개 메소드

Deletes text.
public DeleteText ( int startPos, int length ) : void
startPos int Starting cursor position.
length int Length in characters.
리턴 void

EraseSelection() 공개 메소드

Deletes selected text.
public EraseSelection ( ) : void
리턴 void

GetSelection() 공개 메소드

Returns currently selected text.
public GetSelection ( ) : String
리턴 String

IsTextAllowed() 보호된 메소드

Determines whether the control can insert text at a given cursor position.
protected IsTextAllowed ( String text, int position ) : bool
text String Text to check.
position int Cursor position.
리턴 bool

Layout() 보호된 메소드

Lays out the control's interior according to alignment, padding, dock etc.
protected Layout ( Skins skin ) : void
skin Skins Skin to use.
리턴 void

MakeCaretVisible() 보호된 메소드

protected MakeCaretVisible ( ) : void
리턴 void

OnChar() 보호된 메소드

Handler for character input event.
protected OnChar ( char chr ) : bool
chr char Character typed.
리턴 bool

OnCopy() 보호된 메소드

Handler for Copy event.
protected OnCopy ( Control from ) : void
from Control Source control.
리턴 void

OnCut() 보호된 메소드

Handler for Cut event.
protected OnCut ( Control from ) : void
from Control Source control.
리턴 void

OnKeyBackspace() 보호된 메소드

Handler for Backspace keyboard event.
protected OnKeyBackspace ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyDelete() 보호된 메소드

Handler for Delete keyboard event.
protected OnKeyDelete ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyEnd() 보호된 메소드

Handler for End keyboard event.
protected OnKeyEnd ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyHome() 보호된 메소드

Handler for Home keyboard event.
protected OnKeyHome ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyLeft() 보호된 메소드

Handler for Left Arrow keyboard event.
protected OnKeyLeft ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyReturn() 보호된 메소드

Handler for Return keyboard event.
protected OnKeyReturn ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnKeyRight() 보호된 메소드

Handler for Right Arrow keyboard event.
protected OnKeyRight ( bool down ) : bool
down bool Indicates whether the key was pressed or released.
리턴 bool

OnMouseClickedLeft() 보호된 메소드

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
리턴 void

OnMouseDoubleClickedLeft() 보호된 메소드

Handler invoked on mouse double click (left) event.
protected OnMouseDoubleClickedLeft ( int x, int y ) : void
x int X coordinate.
y int Y coordinate.
리턴 void

OnMouseMoved() 보호된 메소드

Handler invoked on mouse moved event.
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

OnPaste() 보호된 메소드

Handler for Paste event.
protected OnPaste ( Control from ) : void
from Control Source control.
리턴 void

OnReturn() 보호된 메소드

Handler for the return key.
protected OnReturn ( ) : void
리턴 void

OnSelectAll() 보호된 메소드

Handler for Select All event.
protected OnSelectAll ( Control from ) : void
from Control Source control.
리턴 void

OnTextChanged() 보호된 메소드

Handler for text changed event.
protected OnTextChanged ( ) : void
리턴 void

RefreshCursorBounds() 보호된 메소드

protected RefreshCursorBounds ( ) : void
리턴 void

Render() 보호된 메소드

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
리턴 void

RenderFocus() 보호된 메소드

Renders the focus overlay.
protected RenderFocus ( Skins skin ) : void
skin Skins Skin to use.
리턴 void

TextBox() 공개 메소드

Initializes a new instance of the TextBox class.
public TextBox ( Control parent ) : System
parent Control Parent control.
리턴 System