Class
CSharpTagger

Class defining C# 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 CSharpTagger : WordTaggerBase, ITagger<ClassificationTag>

Inheritance: objectTaggerBase<ClassificationTag>WordTaggerBaseCSharpTagger

Implements: ITagger<ClassificationTag>

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

Constructors

CSharpTagger(RadSyntaxEditor)

Initializes a new instance of the CSharpTagger class.

Declaration

cs-api-definition
public CSharpTagger(RadSyntaxEditor editor)

Parameters

editor

RadSyntaxEditor

The 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 CSharp char. 3 - CSharp 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)

RebuildMultilineTags()

Rebuilds the MultilineTags collection.

Declaration

cs-api-definition
protected override void RebuildMultilineTags()

Overrides WordTaggerBase.RebuildMultilineTags()