C# Класс Deveel.History

The handler for the lines stored in the history of the console.
Показать файл Открыть проект

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

Метод Описание
AddHistory ( string line ) : void

Add a line of input to the scroll-back history.

AddHistoryUnique ( String line ) : void

Adds a line of input to the scroll-back history, if it is different from the most recent line that is present.

ClearHistory ( ) : void

Clear the scroll-back history.

GetHistory ( int index ) : String

Get a particular history item. Zero is the most recent.

Load ( string file ) : void

Loads a set of history lines from a given file.

Save ( string file ) : void

Saves the history lines stored in the History into the given file.

SetHistory ( int index, string line ) : void

Set a particular history item at the given index.

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

AddHistory() публичный статический Метод

Add a line of input to the scroll-back history.
public static AddHistory ( string line ) : void
line string The line string to add to the history.
Результат void

AddHistoryUnique() публичный статический Метод

Adds a line of input to the scroll-back history, if it is different from the most recent line that is present.
public static AddHistoryUnique ( String line ) : void
line String
Результат void

ClearHistory() публичный статический Метод

Clear the scroll-back history.
public static ClearHistory ( ) : void
Результат void

GetHistory() публичный статический Метод

Get a particular history item. Zero is the most recent.
public static GetHistory ( int index ) : String
index int
Результат String

Load() публичный статический Метод

Loads a set of history lines from a given file.
public static Load ( string file ) : void
file string The path to the file containing the history /// lines to load.
Результат void

Save() публичный статический Метод

Saves the history lines stored in the History into the given file.
public static Save ( string file ) : void
file string The path to the file where to store the /// history lines.
Результат void

SetHistory() публичный статический Метод

Set a particular history item at the given index.
public static SetHistory ( int index, string line ) : void
index int
line string
Результат void