IHighlighter Interface
Represents a highlighted document.
Declaration Syntax
C#Visual BasicVisual C++
public interface IHighlighter : IDisposable
Public Interface IHighlighter _
	Inherits IDisposable
public interface class IHighlighter : IDisposable
All MembersMethodsPropertiesEvents

Opens a group of HighlightLine(Int32) calls. It is not necessary to call this method before calling HighlightLine(Int32), however, doing so can make the highlighting much more performant in some cases (e.g. the C# semantic highlighter in SharpDevelop will re-use the resolver within a highlighting group).

Gets the default text color.

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Gets the underlying text document.

Closes the currently opened group of HighlightLine(Int32) calls.

Gets the stack of active colors (the colors associated with the active spans) at the end of the specified line. -> GetColorStack(1) returns the colors at the start of the second line.

Retrieves the HighlightingColor with the specified name. Returns null if no color matching the name is found.

Notification when the highlighter detects that the highlighting state at the beginning of the specified lines has changed. fromLineNumber and toLineNumber are both inclusive; the common case of a single-line change is represented by fromLineNumber == toLineNumber. During highlighting, the highlighting of line X will cause this event to be raised for line X+1 if the highlighting state at the end of line X has changed from its previous state. This event may also be raised outside of the highlighting process to signalize that changes to external data (not the document text; but e.g. semantic information) require a re-highlighting of the specified lines.

Highlights the specified document line.

Enforces a highlighting state update (triggering the HighlightingStateChanged event if necessary) for all lines up to (and inclusive) the specified line number.

This interface is used by the HighlightingColorizer to register the highlighter as a TextView service.

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