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

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

Открытые методы

Метод Описание
ProcessKeyboard ( Input info ) : bool

Focuses the previous or next selection button depending on if the UP or DOWN arrow keys were pressed.

SelectNext ( ) : SelectionButton

Selects the next selection button.

SelectPrevious ( ) : SelectionButton

Selects the previous selection button.

SelectionButton ( int width ) : System

Creates a new Selection Button with a specific width and height.

SetNextSelection ( SelectionButton &nextSelection, bool setPreviousOnNext = true ) : SelectionButton

Sets the next selection button and optionally sets the previous of the referenced selection to this button.

Описание методов

ProcessKeyboard() публичный Метод

Focuses the previous or next selection button depending on if the UP or DOWN arrow keys were pressed.
public ProcessKeyboard ( Input info ) : bool
info Input The keyboard state.
Результат bool

SelectNext() публичный Метод

Selects the next selection button.
public SelectNext ( ) : SelectionButton
Результат SelectionButton

SelectPrevious() публичный Метод

Selects the previous selection button.
public SelectPrevious ( ) : SelectionButton
Результат SelectionButton

SelectionButton() публичный Метод

Creates a new Selection Button with a specific width and height.
public SelectionButton ( int width ) : System
width int The width of the selection button.
Результат System

SetNextSelection() публичный Метод

Sets the next selection button and optionally sets the previous of the referenced selection to this button.
public SetNextSelection ( SelectionButton &nextSelection, bool setPreviousOnNext = true ) : SelectionButton
nextSelection SelectionButton The selection button to be used as next.
setPreviousOnNext bool Sets the PreviousSelection property on the instance to current selection button. Defaults to true.
Результат SelectionButton