In This Article

IntraTextAdornmentManagerBase<TView, TTag> Class

Provides a helpful base class for implementing an adornment manager that displays adornments in intra-text spacers.

public abstract class IntraTextAdornmentManagerBase<TView, TTag> : AdornmentManagerBase<TView>, IAdornmentManager where TView : ITextView where TTag : IIntraTextSpacerTag
Type Parameters:
TView -

The type of ITextView to support. Use ITextView to support all text view types.

TTag -

The type of IIntraTextSpacerTag to aggregate.

Inheritance:
object AdornmentManagerBase<TView> object
Implements:
IAdornmentManager

Constructors

IntraTextAdornmentManagerBase(TView, AdornmentLayerDefinition)

Initializes a new instance of the IntraTextAdornmentManagerBase class.

protected IntraTextAdornmentManagerBase(TView view, AdornmentLayerDefinition layerDefinition)
Parameter Type Description
view TView

The view to which this manager is attached.

layerDefinition AdornmentLayerDefinition

The AdornmentLayerDefinition indicating which adornment layer to use.

IntraTextAdornmentManagerBase(TView, AdornmentLayerDefinition, bool)

Initializes a new instance of the IntraTextAdornmentManagerBase class.

protected IntraTextAdornmentManagerBase(TView view, AdornmentLayerDefinition layerDefinition, bool isForLanguage)
Parameter Type Description
view TView

The view to which this manager is attached.

layerDefinition AdornmentLayerDefinition

The AdornmentLayerDefinition indicating which adornment layer to use.

isForLanguage bool

Indicates whether this adornment manager is for a language.
If true, the adornment manager is closed when the language or document within a SyntaxEditor changes.

Methods

AddAdornment(AdornmentChangeReason, ITextViewLine, TagSnapshotRange<TTag>, TextBounds)

Adds an adornment to the AdornmentLayer.

protected abstract void AddAdornment(AdornmentChangeReason reason, ITextViewLine viewLine, TagSnapshotRange<TTag> tagRange, TextBounds bounds)
Parameter Type Description
reason AdornmentChangeReason

An AdornmentChangeReason indicating the add reason.

viewLine ITextViewLine

The current ITextViewLine being examined.

tagRange TagSnapshotRange<TTag>

The ITag and the range it covers.

bounds TextBounds

The text bounds in which to render an adornment.

OnClosed()

Occurs when the manager is closed and detached from the view.

protected override void OnClosed()

Remarks

Overrides should release any event handlers set up in the manager's constructor.

Inherited Members