C# Класс WikiFunctions.Controls.ArticleTextBox

Wrapped EditBox to conveniently manage the automatic summary reset conditions
Наследование: System.Windows.Forms.RichTextBox
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnEnter ( EventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
OnTextChanged ( EventArgs e ) : void

Приватные методы

Метод Описание
FormatRegex ( string strRegex, string articleName, bool isRegex ) : string

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

InitializeComponent ( ) : void

Описание методов

ArticleTextBox() публичный Метод

public ArticleTextBox ( ) : System
Результат System

Find() публичный Метод

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
Результат void

FindAll() публичный Метод

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
Результат int>.Dictionary

HighlightSyntax() публичный Метод

Applies syntax highlighting to the input ArticleTextBox
public HighlightSyntax ( ) : void
Результат void

OnEnter() защищенный Метод

protected OnEnter ( EventArgs e ) : void
e EventArgs
Результат void

OnHandleCreated() защищенный Метод

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
Результат void

OnTextChanged() защищенный Метод

protected OnTextChanged ( EventArgs e ) : void
e EventArgs
Результат void

ResetFind() публичный Метод

Resets the Find Objects
public ResetFind ( ) : void
Результат void

SetEditBoxSelection() публичный Метод

public SetEditBoxSelection ( int inputIndex, int inputLength ) : void
inputIndex int
inputLength int
Результат void

SetEditBoxSelection() публичный Метод

public SetEditBoxSelection ( int inputIndex, int inputLength, bool scrollToCaret ) : void
inputIndex int
inputLength int
scrollToCaret bool
Результат void