C# 클래스 SadConsole.Controls.InputBox

상속: ControlBase
파일 보기 프로젝트 열기: Thraka/SadConsole 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_currentAppearance CellAppearance
_leftDrawOffset int
_validNumbers char[]

Private Properties

프로퍼티 타입 설명
AfterDeserialized void

공개 메소드들

메소드 설명
Compose ( ) : void

Draws the control.

DetermineAppearance ( ) : void

Determines the appearance of the control based on its current state.

FocusLost ( ) : void

Called when the control loses focus.

Focused ( ) : void

Called when the control is focused.

InputBox ( int width ) : System

Creates a new instance of the input box.

ProcessKeyboard ( KeyboardInfo info ) : bool

Called when the control should process keyboard information.

Update ( ) : void

보호된 메소드들

메소드 설명
OnLeftMouseClicked ( MouseInfo info ) : void
PositionCursor ( ) : void

Correctly positions the cursor within the text.

Validate ( ) : void

Validates that the value of the input box conforms to the settings of this control and sets the dirty flag to true.

ValidateEdit ( ) : void

비공개 메소드들

메소드 설명
AfterDeserialized ( StreamingContext context ) : void

메소드 상세

Compose() 공개 메소드

Draws the control.
public Compose ( ) : void
리턴 void

DetermineAppearance() 공개 메소드

Determines the appearance of the control based on its current state.
public DetermineAppearance ( ) : void
리턴 void

FocusLost() 공개 메소드

Called when the control loses focus.
public FocusLost ( ) : void
리턴 void

Focused() 공개 메소드

Called when the control is focused.
public Focused ( ) : void
리턴 void

InputBox() 공개 메소드

Creates a new instance of the input box.
public InputBox ( int width ) : System
width int The width of the input box.
리턴 System

OnLeftMouseClicked() 보호된 메소드

protected OnLeftMouseClicked ( MouseInfo info ) : void
info SadConsole.Input.MouseInfo
리턴 void

PositionCursor() 보호된 메소드

Correctly positions the cursor within the text.
protected PositionCursor ( ) : void
리턴 void

ProcessKeyboard() 공개 메소드

Called when the control should process keyboard information.
public ProcessKeyboard ( KeyboardInfo info ) : bool
info SadConsole.Input.KeyboardInfo The keyboard information.
리턴 bool

Update() 공개 메소드

public Update ( ) : void
리턴 void

Validate() 보호된 메소드

Validates that the value of the input box conforms to the settings of this control and sets the dirty flag to true.
protected Validate ( ) : void
리턴 void

ValidateEdit() 보호된 메소드

protected ValidateEdit ( ) : void
리턴 void

프로퍼티 상세

_currentAppearance 보호되어 있는 프로퍼티

The current appearance of the control.
protected CellAppearance _currentAppearance
리턴 CellAppearance

_leftDrawOffset 보호되어 있는 프로퍼티

When editing the text box, this allows the text to scroll to the right so you can see what you are typing.
protected int _leftDrawOffset
리턴 int

_validNumbers 보호되어 있는 정적으로 프로퍼티

A list of valid number characters
protected static char[] _validNumbers
리턴 char[]