C# Class WikiFunctions.Controls.ArticleTextBox

Wrapped EditBox to conveniently manage the automatic summary reset conditions
Inheritance: System.Windows.Forms.RichTextBox
Show file Open project: reedy/AutoWikiBrowser Class Usage Examples

Public Methods

Method Description
ArticleTextBox ( ) : System
Find ( string strRegex, bool isRegex, bool caseSensitive, string articleName ) : void

Finds the next match of the search regex in the page text Applies article keywords prior to search

FindAll ( string strRegex, bool isRegex, bool caseSensitive, string articleName ) : int>.Dictionary

Finds all the matches of the search regex in the page text Applies article keywords prior to search

HighlightSyntax ( ) : void

Applies syntax highlighting to the input ArticleTextBox

ResetFind ( ) : void

Resets the Find Objects

SetEditBoxSelection ( int inputIndex, int inputLength ) : void
SetEditBoxSelection ( int inputIndex, int inputLength, bool scrollToCaret ) : void

Protected Methods

Method Description
OnEnter ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnTextChanged ( EventArgs e ) : void

Private Methods

Method Description
FormatRegex ( string strRegex, string articleName, bool isRegex ) : string

Applies keywords to search text, formats newlines to support \n as newline

InitializeComponent ( ) : void

Method Details

ArticleTextBox() public method

public ArticleTextBox ( ) : System
return System

Find() public method

Finds the next match of the search regex in the page text Applies article keywords prior to search
public Find ( string strRegex, bool isRegex, bool caseSensitive, string articleName ) : void
strRegex string Search string
isRegex bool Whether search string is a regex
caseSensitive bool Whether search string is to be case sensitive
articleName string Wiki page name
return void

FindAll() public method

Finds all the matches of the search regex in the page text Applies article keywords prior to search
public FindAll ( string strRegex, bool isRegex, bool caseSensitive, string articleName ) : int>.Dictionary
strRegex string Search string
isRegex bool Whether search string is a regex
caseSensitive bool Whether search string is to be case sensitive
articleName string Wiki page name
return int>.Dictionary

HighlightSyntax() public method

Applies syntax highlighting to the input ArticleTextBox
public HighlightSyntax ( ) : void
return void

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e EventArgs
return void

OnHandleCreated() protected method

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
return void

OnTextChanged() protected method

protected OnTextChanged ( EventArgs e ) : void
e EventArgs
return void

ResetFind() public method

Resets the Find Objects
public ResetFind ( ) : void
return void

SetEditBoxSelection() public method

public SetEditBoxSelection ( int inputIndex, int inputLength ) : void
inputIndex int
inputLength int
return void

SetEditBoxSelection() public method

public SetEditBoxSelection ( int inputIndex, int inputLength, bool scrollToCaret ) : void
inputIndex int
inputLength int
scrollToCaret bool
return void