A colorizes that interprets a highlighting rule set and colors the document accordingly.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class HighlightingColorizer : DocumentColorizingTransformer
Public Class HighlightingColorizer _ Inherits DocumentColorizingTransformer
public ref class HighlightingColorizer : public DocumentColorizingTransformer
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
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) | (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()()()() | (Inherited from Object.) | |
Transform(ITextRunConstructionContext, IList<(Of <<'(VisualLineElement>)>>)) | Transform(ITextRunConstructionContext, IList<(Of <<'(VisualLineElement>)>>)) implementation.
Sets CurrentElements and calls Colorize(ITextRunConstructionContext).
(Inherited from ColorizingTransformer.) |
Inheritance Hierarchy
Object | |||
ColorizingTransformer | |||
DocumentColorizingTransformer | |||
HighlightingColorizer |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238