AvalonEdit
HighlightingColorizer Class
NamespacesICSharpCode.AvalonEdit.HighlightingHighlightingColorizer
A colorizes that interprets a highlighting rule set and colors the document accordingly.
Declaration Syntax
C#Visual BasicVisual C++
public class HighlightingColorizer : DocumentColorizingTransformer
Public Class HighlightingColorizer _
	Inherits DocumentColorizingTransformer
public ref class HighlightingColorizer : public DocumentColorizingTransformer
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
HighlightingColorizer(IHighlightingDefinition)
Creates a new HighlightingColorizer instance.

HighlightingColorizer(IHighlighter)
Creates a new HighlightingColorizer instance that uses a fixed highlighter instance. The colorizer can only be used with text views that show the document for which the highlighter was created.

HighlightingColorizer()()()()
Creates a new HighlightingColorizer instance. Derived classes using this constructor must override the CreateHighlighter(TextView, TextDocument) method.

ApplyColorToElement(VisualLineElement, HighlightingColor)
Applies a highlighting color to a visual line element.

ChangeLinePart(Int32, Int32, Action<(Of <<'(VisualLineElement>)>>))
Changes a part of the current document line.
(Inherited from DocumentColorizingTransformer.)
ChangeVisualElements(Int32, Int32, Action<(Of <<'(VisualLineElement>)>>))
Changes visual element properties. This method accesses CurrentElements, so it must be called only during a Transform(ITextRunConstructionContext, IList<(Of <<'(VisualLineElement>)>>)) call. This method splits VisualLineElements as necessary to ensure that the region can be colored by setting the TextRunProperties of whole elements, and then calls the action on all elements in the region.
(Inherited from ColorizingTransformer.)
Colorize(ITextRunConstructionContext)
Performs the colorization.
(Overrides DocumentColorizingTransformer.Colorize(ITextRunConstructionContext).)
ColorizeLine(DocumentLine)
Override this method to colorize an individual document line.
(Overrides DocumentColorizingTransformer.ColorizeLine(DocumentLine).)
CreateHighlighter(TextView, TextDocument)
Creates the IHighlighter instance for the specified text document.

CurrentContext
Gets the current ITextRunConstructionContext.
(Inherited from DocumentColorizingTransformer.)
CurrentElements
Gets the list of elements currently being transformed.
(Inherited from ColorizingTransformer.)
DeregisterServices(TextView)
This method is called when a text view is removed from this HighlightingColorizer, and also when the TextDocument on any associated text view changes.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnAddToTextView(TextView)
Called when added to a text view.
(Overrides ColorizingTransformer.OnAddToTextView(TextView).)
OnRemoveFromTextView(TextView)
Called when removed from a text view.
(Overrides ColorizingTransformer.OnRemoveFromTextView(TextView).)
RegisterServices(TextView)
This method is called when a new text view is added to this HighlightingColorizer, and also when the TextDocument on any associated text view changes.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Transform(ITextRunConstructionContext, IList<(Of <<'(VisualLineElement>)>>)) (Inherited from ColorizingTransformer.)
Inheritance Hierarchy

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238