A colorizer that applies the highlighting from a RichTextModel to the editor.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class RichTextColorizer : DocumentColorizingTransformer
Public Class RichTextColorizer _ Inherits DocumentColorizingTransformer
public ref class RichTextColorizer : public DocumentColorizingTransformer
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
RichTextColorizer(RichTextModel) |
Creates a new RichTextColorizer instance.
| |
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.
(Inherited from DocumentColorizingTransformer.) | |
ColorizeLine(DocumentLine) |
Override this method to colorize an individual document line.
(Overrides DocumentColorizingTransformer.ColorizeLine(DocumentLine).) | |
CurrentContext |
Gets the current ITextRunConstructionContext.
(Inherited from DocumentColorizingTransformer.) | |
CurrentElements |
Gets the list of elements currently being transformed.
(Inherited from ColorizingTransformer.) | |
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.
(Inherited from ColorizingTransformer.) | |
OnRemoveFromTextView(TextView) |
Called when removed from a text view.
(Inherited from ColorizingTransformer.) | |
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 | |||
RichTextColorizer |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238