skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class WordTaggerBase

Base tagger class for classification of words.

Inheritance
System.Object
TaggerBase<ClassificationTag>
WordTaggerBase
CSharpTagger
JavaScriptTagger
SqlTagger
VisualBasicTagger
Inherited Members
TaggerBase<ClassificationTag>.CallOnTagsChanged(Span)
TaggerBase<ClassificationTag>.OnTagsChanged(TagsChangedEventArgs)
TaggerBase<ClassificationTag>.Editor
TaggerBase<ClassificationTag>.Document
TaggerBase<ClassificationTag>.TagsChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Controls.SyntaxEditor.Taggers
Assembly: Telerik.WinControls.SyntaxEditor.dll

Syntax

public abstract class WordTaggerBase : TaggerBase<ClassificationTag>, ITagger<ClassificationTag>

Constructors

WordTaggerBase(RadSyntaxEditorElement)

Initializes a new instance of the WordTaggerBase class.

Declaration
protected WordTaggerBase(RadSyntaxEditorElement editor)
Parameters
RadSyntaxEditorElement editor

The editor.

Properties

EnableMultilineTags

Gets or sets a value indicating whether multiline tags are collected by this tagger instance. The method RebuildMultilineTags() process all document and collects Multiline tags in the MultilineTags property.

Declaration
public bool EnableMultilineTags { get; set; }
Property Value
System.Boolean

MultilineTags

The list of multiline ClassificationTags wrapped in TagSpans.

Declaration
protected IList<TagSpan<ClassificationTag>> MultilineTags { get; }
Property Value
System.Collections.Generic.IList<TagSpan<ClassificationTag>>

StringMatchingRegex

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

Declaration
protected virtual string StringMatchingRegex { get; set; }
Property Value
System.String

Methods

AddWord(String, ClassificationType)

Adds a new word-type pair in the dictionary.

Declaration
public void AddWord(string word, ClassificationType classificationType)
Parameters
System.String word

ClassificationType classificationType

GetCharType(Char)

Declaration
protected virtual int GetCharType(char character)
Parameters
System.Char character

Returns
System.Int32

GetTags(NormalizedSnapshotSpanCollection)

Gets the tags.

Declaration
public override IEnumerable<TagSpan<ClassificationTag>> GetTags(NormalizedSnapshotSpanCollection spans)
Parameters
NormalizedSnapshotSpanCollection spans

Returns
System.Collections.Generic.IEnumerable<TagSpan<ClassificationTag>>

Overrides
Telerik.WinForms.SyntaxEditor.Core.Tagging.TaggerBase<Telerik.WinForms.SyntaxEditor.Core.Tagging.ClassificationTag>.GetTags(Telerik.WinForms.SyntaxEditor.Core.Text.NormalizedSnapshotSpanCollection)

GetWordsToClassificationTypes()

Gets the words to classification types.

Declaration
protected abstract Dictionary<string, ClassificationType> GetWordsToClassificationTypes()
Returns
System.Collections.Generic.Dictionary<System.String, ClassificationType>

Dictionary<System.String, ClassificationType>.

InvalidateMultilineTags()

Clears all multiline tags and rebuilds them.

Declaration
protected virtual void InvalidateMultilineTags()

OnWordSplit(Int32, String)

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

Declaration
protected virtual void OnWordSplit(int wordCharType, string word)
Parameters
System.Int32 wordCharType

System.String word

RebuildMultilineTags()

Rebuilds the MultilineTags collection.

Declaration
protected virtual void RebuildMultilineTags()

SkipWord(String, Nullable<Char>)

Checks if the split word should be skipped.

Declaration
protected virtual bool SkipWord(string word, char? nextChar = default(char? ))
Parameters
System.String word

The split word.

System.Nullable<System.Char> nextChar

The next char.

Returns
System.Boolean

SplitIntoWords(String)

Splits the given string into collection of words.

Declaration
protected virtual IList<string> SplitIntoWords(string value)
Parameters
System.String value

The given string to split.

Returns
System.Collections.Generic.IList<System.String>

List of the words.

TryGetClassificationType(String, out ClassificationType)

Tries to get the classification type for the given string word.

Declaration
protected virtual bool TryGetClassificationType(string word, out ClassificationType classificationType)
Parameters
System.String word

The string word.

ClassificationType classificationType

The result classification type.

Returns
System.Boolean

Returns true if classification type is found, otherwise - false.

TryRemoveWord(String)

Tries to removes a given word from the dictionary.

Declaration
public bool TryRemoveWord(string word)
Parameters
System.String word

Returns
System.Boolean

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.