New to Telerik UI for WPF? Start a free 30-day trial

Class defining T-SQL (Transact-SQL) programming language keywords and comments.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Taggers

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

C#
public class SqlTagger : WordTaggerBase, ITagger<ClassificationTag>

Inheritance: objectTaggerBase<ClassificationTag>WordTaggerBaseSqlTagger

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

Initializes a new instance of the SqlTagger class.

C#
public SqlTagger(RadSyntaxEditor editor)
Parameters:editorRadSyntaxEditor

The editor.

Properties

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

C#
protected override string StringMatchingRegex { get; set; }

Overrides: WordTaggerBase.StringMatchingRegex

Methods

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

C#
protected override int GetCharType(char character)
Parameters:charactercharReturns:

int

Overrides: WordTaggerBase.GetCharType(char)

Gets the words to classification types.

C#
protected override Dictionary<string, ClassificationType> GetWordsToClassificationTypes()
Returns:

Dictionary<string, ClassificationType>

Overrides: WordTaggerBase.GetWordsToClassificationTypes()

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

C#
protected override void OnWordSplit(int wordCharType, string word)
Parameters:wordCharTypeintwordstring

Overrides: WordTaggerBase.OnWordSplit(int, string)

Rebuilds the MultilineTags collection.

C#
protected override void RebuildMultilineTags()

Overrides: WordTaggerBase.RebuildMultilineTags()