C# 클래스 Deveel.History

The handler for the lines stored in the history of the console.
파일 보기 프로젝트 열기: deveel/deveelrl

공개 메소드들

메소드 설명
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