Class RegexTagger
Inherited Members
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.Documents.Model.Code
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class RegexTagger : TaggerBase<ClassificationTag>, ITagger<ClassificationTag>
Constructors
RegexTagger(Dictionary<Regex, ClassificationType>)
Declaration
public RegexTagger(Dictionary<Regex, ClassificationType> regexToClassificationType)
Parameters
System.Collections.Generic.Dictionary<System.Text.RegularExpressions.Regex, ClassificationType>
regexToClassificationType
|
Methods
GetKeywordsRegex(IEnumerable<String>)
Creates regular expression by a list of keywords.
Declaration
public static Regex GetKeywordsRegex(IEnumerable<string> keywords)
Parameters
System.Collections.Generic.IEnumerable<System.String>
keywords
A list of keywords. |
Returns
System.Text.RegularExpressions.Regex
|
GetTags(IDocumentEditor)
Declaration
public override IEnumerable<TaggedTextRange<ClassificationTag>> GetTags(IDocumentEditor editor)
Parameters
IDocumentEditor
editor
|
Returns
System.Collections.Generic.IEnumerable<TaggedTextRange<ClassificationTag>>
|
Overrides
Telerik.WinForms.Documents.Model.Code.TaggerBase<Telerik.WinForms.Documents.Model.Code.ClassificationTag>.GetTags(Telerik.WinForms.Documents.Model.IDocumentEditor)