C# Class MGShaderEditor.SearchReplaceForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: procfxgen/MGShaderEditor

Public Methods

Method Description
FindNext ( string text, SearchFlags searchFlags ) : int

Finds the next occurnce of the text in the active Scintilla control

FindPrevious ( string text, SearchFlags searchFlags ) : int

Finds the previous occurence of the text in the active Scintilla control

SearchReplaceForm ( ) : ScintillaNET
SetFind ( Scintilla scintilla ) : void

Inits the 'Find' dialog for the specified Scintilla control

SetReplace ( Scintilla scintilla ) : void

/// Inits the 'Replace' dialog for the specified Scintilla control

SetTarget ( Scintilla scintilla ) : void

Changes focus of the actions to the specified Scintilla control

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Method Description
EvtShown ( object sender, EventArgs e ) : void
EvtfindText_PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
FindReplace_FormClosing ( object sender, FormClosingEventArgs e ) : void

Prevents the form from being destroyed

InitializeComponent ( ) : void

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

ReplaceAll ( string findText, string replaceText ) : void

Replaces all occurences of text with text specified

ReplaceNext ( string findText, string replaceText ) : int

Replaces the text with text specified

SetFindSearchFlags ( ) : void

Set the Find search flags based on checked options

SetReplaceSearchFlags ( ) : void

Set the Replace search flags based on checked options

buttonFindNext_Click ( object sender, EventArgs e ) : void

Handles the 'Find Next' button

buttonFindPrev_Click ( object sender, EventArgs e ) : void

Handles the 'Find Previous' button

buttonReplaceAll_Click ( object sender, EventArgs e ) : void

Handles with Replace All button

buttonReplaceNext_Click ( object sender, EventArgs e ) : void

Handles the Replace Next button

Method Details

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

FindNext() public method

Finds the next occurnce of the text in the active Scintilla control
public FindNext ( string text, SearchFlags searchFlags ) : int
text string
searchFlags SearchFlags
return int

FindPrevious() public method

Finds the previous occurence of the text in the active Scintilla control
public FindPrevious ( string text, SearchFlags searchFlags ) : int
text string
searchFlags SearchFlags
return int

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

SearchReplaceForm() public method

public SearchReplaceForm ( ) : ScintillaNET
return ScintillaNET

SetFind() public method

Inits the 'Find' dialog for the specified Scintilla control
public SetFind ( Scintilla scintilla ) : void
scintilla ScintillaNET.Scintilla
return void

SetReplace() public method

/// Inits the 'Replace' dialog for the specified Scintilla control
public SetReplace ( Scintilla scintilla ) : void
scintilla ScintillaNET.Scintilla
return void

SetTarget() public method

Changes focus of the actions to the specified Scintilla control
public SetTarget ( Scintilla scintilla ) : void
scintilla ScintillaNET.Scintilla
return void