C# Class NanoByte.Common.Controls.LiveEditor

ファイルを表示 Open project: nano-byte/common

Public Methods

Method Description
ClearUndoStack ( ) : void

Clears the undo stack of the underlying text editor control.

LiveEditor ( ) : System
Redo ( ) : void

Executes the redo method of the underlying text editor control.

SetContent ( string text, string format ) : void

Sets a new text to be edited.

Undo ( ) : void

Executes the undo method of the underlying text editor control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
HandleError ( Exception ex ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SetStatus ( Image image, string message ) : void
TextEditor_TextChanged ( object sender, EventArgs e ) : void
TextEditor_Validating ( object sender, CancelEventArgs e ) : void
ValidateContent ( ) : void
timer_Tick ( object sender, EventArgs e ) : void

Method Details

ClearUndoStack() public method

Clears the undo stack of the underlying text editor control.
public ClearUndoStack ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LiveEditor() public method

public LiveEditor ( ) : System
return System

Redo() public method

Executes the redo method of the underlying text editor control.
public Redo ( ) : void
return void

SetContent() public method

Sets a new text to be edited.
public SetContent ( string text, string format ) : void
text string The text to set.
format string The format named used to determine the highlighting scheme (e.g. XML).
return void

Undo() public method

Executes the undo method of the underlying text editor control.
public Undo ( ) : void
return void