C# Class MGShaderEditor.SearchReplaceForm

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: procfxgen/MGShaderEditor

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Méthode 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 méthode

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

FindNext() public méthode

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

FindPrevious() public méthode

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

ProcessCmdKey() protected méthode

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

SearchReplaceForm() public méthode

public SearchReplaceForm ( ) : ScintillaNET
Résultat ScintillaNET

SetFind() public méthode

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

SetReplace() public méthode

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

SetTarget() public méthode

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