C# 클래스 GUIUtils.Editor.SyntaxRichTextBox

상속: System.Windows.Forms.RichTextBox
파일 보기 프로젝트 열기: ERTMSSolutions/ERTMSFormalSpecs

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