C# Класс GUIUtils.Editor.SyntaxRichTextBox

Наследование: System.Windows.Forms.RichTextBox
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddIndent void
Clean void
Couple bool
EndLine int
NewLine void
ProcessLine void
StartLine int
SyntaxRichTextBox_SelectionChanged void
SyntaxRichTextBox_TextChanged void

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

Метод Описание
Indent ( ) : void

Indents the contents of the syntax text box

ProcessAllLines ( bool force = false ) : void

Processes all lines in the text box

SyntaxRichTextBox ( ) : System

Constructor

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

Метод Описание
WndProc ( Message &m ) : void

Captures WndProc event and filter out paint events when CanPaint is set to false to avoid flickering

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

Метод Описание
AddIndent ( System.StringBuilder builder, int level ) : void

Adds an indent on the string

Clean ( ) : void

Cleans meta data about what is displayed

Couple ( string text, int i ) : bool

Indicates that two consecutive characters are a couple of parenthesis, brackets or curved brackets

EndLine ( int index ) : int

Provides the end index of the line, according to the index provided as parameter

NewLine ( System.StringBuilder builder, int level ) : void

Adds a new line

ProcessLine ( int start, string line ) : void

Process a line.

StartLine ( int index ) : int

Provides the start of the line, according to the index provided as parameter

SyntaxRichTextBox_SelectionChanged ( object sender, EventArgs e ) : void

Recolor the displayed lines

SyntaxRichTextBox_TextChanged ( object sender, EventArgs e ) : void

Handles a text change to recolor it

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

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

Indents the contents of the syntax text box
public Indent ( ) : void
Результат void

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

Processes all lines in the text box
public ProcessAllLines ( bool force = false ) : void
force bool Forces the recoloring of all lines. /// Otherwise, already colored lines are not processed again
Результат void

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

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

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

Captures WndProc event and filter out paint events when CanPaint is set to false to avoid flickering
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message
Результат void