AvalonEdit
DocumentColorizingTransformer Class
NamespacesICSharpCode.AvalonEdit.RenderingDocumentColorizingTransformer
Base class for IVisualLineTransformer that helps colorizing the document. Derived classes can work with document lines and text offsets and this class takes care of the visual lines and visual columns.
Declaration Syntax
C#Visual BasicVisual C++
public abstract class DocumentColorizingTransformer : ColorizingTransformer
Public MustInherit Class DocumentColorizingTransformer _
	Inherits ColorizingTransformer
public ref class DocumentColorizingTransformer abstract : public ColorizingTransformer
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DocumentColorizingTransformer()()()()
Initializes a new instance of the DocumentColorizingTransformer class

ChangeLinePart(Int32, Int32, Action<(Of <<'(VisualLineElement>)>>))
Changes a part of the current document line.

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 ColorizingTransformer.Colorize(ITextRunConstructionContext).)
ColorizeLine(DocumentLine)
Override this method to colorize an individual document line.

CurrentContext
Gets the current ITextRunConstructionContext.

CurrentElements
Gets the list of elements currently being transformed.
(Inherited from ColorizingTransformer.)
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.
(Inherited from ColorizingTransformer.)
OnRemoveFromTextView(TextView)
Called when removed from a text view.
(Inherited from ColorizingTransformer.)
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