C# Class GUIUtils.Editor.Patterns.Pattern

A pattern to be found in the text, associated to a color
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
CheckLocation ( Match match, IEnumerable colorizedLocations ) : bool

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

Method Details

AdditionalCheck() public méthode

Performs additional checks on the string provided
public AdditionalCheck ( string text, DataDictionary.ModelElement instance ) : bool
text string
instance DataDictionary.ModelElement
Résultat bool

Colorize() public méthode

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

Pattern() public méthode

Constructor
public Pattern ( Font baseFont, string regExp ) : System.Collections.Generic
baseFont System.Drawing.Font
regExp string
Résultat System.Collections.Generic

TokenizeLine() public méthode

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