In This Article

IntraLineAdornmentManagerBase<TView, TTag> Class

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

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

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

TTag -

The type of IIntraLineSpacerTag to aggregate.

Inheritance:
object AdornmentManagerBase<TView> object
Implements:
IAdornmentManager

Constructors

IntraLineAdornmentManagerBase(TView, AdornmentLayerDefinition)

Initializes a new instance of the IntraLineAdornmentManagerBase class.

protected IntraLineAdornmentManagerBase(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.

IntraLineAdornmentManagerBase(TView, AdornmentLayerDefinition, bool)

Initializes a new instance of the IntraLineAdornmentManagerBase class.

protected IntraLineAdornmentManagerBase(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(ITextViewLine, TagSnapshotRange<TTag>)

Adds an adornment to the AdornmentLayer.

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

The current ITextViewLine being examined.

tagRange TagSnapshotRange<TTag>

The ITag and the range it covers.

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