C# Класс SadConsole.Controls.InputBox

Наследование: ControlBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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[]