C# Class WikiFunctions.Controls.ArticleTextBox

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnEnter ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnTextChanged ( EventArgs e ) : void

Private Methods

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

public ArticleTextBox ( ) : System
Résultat System

Find() public méthode

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
Résultat void

FindAll() public méthode

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
Résultat int>.Dictionary

HighlightSyntax() public méthode

Applies syntax highlighting to the input ArticleTextBox
public HighlightSyntax ( ) : void
Résultat void

OnEnter() protected méthode

protected OnEnter ( EventArgs e ) : void
e EventArgs
Résultat void

OnHandleCreated() protected méthode

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
Résultat void

OnTextChanged() protected méthode

protected OnTextChanged ( EventArgs e ) : void
e EventArgs
Résultat void

ResetFind() public méthode

Resets the Find Objects
public ResetFind ( ) : void
Résultat void

SetEditBoxSelection() public méthode

public SetEditBoxSelection ( int inputIndex, int inputLength ) : void
inputIndex int
inputLength int
Résultat void

SetEditBoxSelection() public méthode

public SetEditBoxSelection ( int inputIndex, int inputLength, bool scrollToCaret ) : void
inputIndex int
inputLength int
scrollToCaret bool
Résultat void