C# Класс GUIUtils.Editor.Patterns.Pattern

A pattern to be found in the text, associated to a color
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AdditionalCheck ( string text, DataDictionary.ModelElement instance ) : bool

Performs additional checks on the string provided

Colorize ( SyntaxRichTextBox textBox, DataDictionary.ModelElement instance, int start, string line, List colorizedLocations ) : void

Process a regular expression.

Pattern ( Font baseFont, string regExp ) : System.Collections.Generic

Constructor

TokenizeLine ( DataDictionary.ModelElement instance, string line, List textParts, List colorizedLocations ) : void

Tokenizes a single line

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

Метод Описание
CheckLocation ( Match match, IEnumerable colorizedLocations ) : bool

Checks that the matching does not occur in an already colored location

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

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

Performs additional checks on the string provided
public AdditionalCheck ( string text, DataDictionary.ModelElement instance ) : bool
text string
instance DataDictionary.ModelElement
Результат bool

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

Process a regular expression.
public Colorize ( SyntaxRichTextBox textBox, DataDictionary.ModelElement instance, int start, string line, List colorizedLocations ) : void
textBox SyntaxRichTextBox
instance DataDictionary.ModelElement
start int The start index of the line
line string The line to be processed
colorizedLocations List The location where coloring already occured
Результат void

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

Constructor
public Pattern ( Font baseFont, string regExp ) : System.Collections.Generic
baseFont System.Drawing.Font
regExp string
Результат System.Collections.Generic

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

Tokenizes a single line
public TokenizeLine ( DataDictionary.ModelElement instance, string line, List textParts, List colorizedLocations ) : void
instance DataDictionary.ModelElement
line string
textParts List
colorizedLocations List
Результат void