Метод | Описание | |
---|---|---|
Accept ( string s ) : void |
Overrides the lastly added history item.
|
|
Append ( string s ) : void |
Appends a value to the history.
|
|
CursorToEnd ( ) : void |
Moves the cursor to the end of the history.
|
|
History ( int size ) : System |
Initializes a new instance of the History class.
|
|
History ( int size, string savedHistory ) : System |
Initializes a new instance of the History class.
|
|
Next ( ) : string |
Moves the cursor to the next item if possible, and returns it.
|
|
NextAvailable ( ) : bool |
Checks if there is a next item after the current item under the cursor.
|
|
Previous ( ) : string |
Moves the cursor to the previous item if possible, and returns it.
|
|
PreviousAvailable ( ) : bool |
Checks if there is a previous item before the current item under the cursor.
|
|
RemoveLast ( ) : void |
Removes the last item that was added to the History.
|
|
SearchBackward ( string term ) : string |
Searches a given term in the history backwards, from newest to oldest command.
|
|
Update ( string s ) : void |
Updates the current cursor location with the string, to support editing of history items. For the current line to participate, an Append must be done before. |
Метод | Описание | |
---|---|---|
Close ( ) : void |
public Accept ( string s ) : void | ||
s | string | The new value to add. |
Результат | void |
public Append ( string s ) : void | ||
s | string | The value to append. |
Результат | void |
public History ( int size ) : System | ||
size | int | The number of commands, this history instance can save. |
Результат | System |
public History ( int size, string savedHistory ) : System | ||
size | int | The number of commands, this history instance can save. |
savedHistory | string | An array of saved commands, that should be loaded to the History on initialisation. |
Результат | System |
public SearchBackward ( string term ) : string | ||
term | string | The term to search for. |
Результат | string |
public Update ( string s ) : void | ||
s | string | The new value for the history item at the current location. |
Результат | void |