Class
VisualBasicTagger

Class defining Visual Basic programming language keywords and comments.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Tagging.Taggers

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
public class VisualBasicTagger : WordTaggerBase, ITagger<ClassificationTag>

Inheritance: objectTaggerBase<ClassificationTag>WordTaggerBaseVisualBasicTagger

Implements: ITagger<ClassificationTag>

Inherited Members WordTaggerBase.GetTags(NormalizedSnapshotSpanCollection)WordTaggerBase.AddWord(string, ClassificationType)WordTaggerBase.TryRemoveWord(string)WordTaggerBase.RebuildMultilineTags()WordTaggerBase.InvalidateMultilineTags()WordTaggerBase.TryGetClassificationType(string, out ClassificationType)WordTaggerBase.EnableMultilineTagsWordTaggerBase.MultilineTagsTaggerBase<ClassificationTag>.CallOnTagsChanged(Span)TaggerBase<ClassificationTag>.OnTagsChanged(TagsChangedEventArgs)TaggerBase<ClassificationTag>.EditorTaggerBase<ClassificationTag>.DocumentTaggerBase<ClassificationTag>.TagsChanged

Constructors

VisualBasicTagger(RadSyntaxEditor)

Initializes a new instance of the VisualBasicTagger class.

Declaration

cs-api-definition
public VisualBasicTagger(RadSyntaxEditor editor)

Parameters

editor

RadSyntaxEditor

The code editor.

Properties

StringMatchingRegex

Gets or sets the regex pattern used to match strings in the documents which this tagger recognizes.

Declaration

cs-api-definition
protected override string StringMatchingRegex { get; set; }

Property Value

string

Overrides WordTaggerBase.StringMatchingRegex

Methods

GetCharType(char)

Gets the type of the VisualBasic char. 3 - VB commenting char, 2 - punctuation or symbol, 1 - whitespace, 0 - preprocessor, letter and all other chars.

Declaration

cs-api-definition
protected override int GetCharType(char character)

Parameters

character

char

Returns

int

Overrides WordTaggerBase.GetCharType(char)

GetWordsToClassificationTypes()

Gets the words to classification types.

Declaration

cs-api-definition
protected override Dictionary<string, ClassificationType> GetWordsToClassificationTypes()

Returns

Dictionary<string, ClassificationType>

Overrides WordTaggerBase.GetWordsToClassificationTypes()

OnWordSplit(int, string)

Called when a word is split during processing of a line string.

Declaration

cs-api-definition
protected override void OnWordSplit(int wordCharType, string word)

Parameters

wordCharType

int

word

string

Overrides WordTaggerBase.OnWordSplit(int, string)

SplitIntoWords(string)

Splits the given string into collection of words.

Declaration

cs-api-definition
protected override IList<string> SplitIntoWords(string value)

Parameters

value

string

The given string to split.

Returns

IList<string>

List of the words.

Overrides WordTaggerBase.SplitIntoWords(string)