Provides a helpful base class for implementing an adornment manager that displays text decorations.
- Type Parameters:
-
TTag
-The type of ITag to aggregate.
- Inheritance:
-
object
Adornment
Manager <TView> objectBase
- Implements:
-
IAdornment
Manager
Constructors
DecorationAdornmentManagerBase(TView, AdornmentLayerDefinition)
Initializes a new instance of the DecorationAdornmentManagerBase
class.
Parameter | Type | Description |
---|---|---|
view | TView | The view to which this manager is attached. |
layerDefinition | Adornment |
The Adornment |
DecorationAdornmentManagerBase(TView, AdornmentLayerDefinition, bool)
Initializes a new instance of the DecorationAdornmentManagerBase
class.
Parameter | Type | Description |
---|---|---|
view | TView | The view to which this manager is attached. |
layerDefinition | Adornment |
The Adornment |
isForLanguage | bool | Indicates whether this adornment manager is for a language. |
Methods
AddAdornment(AdornmentChangeReason, ITextViewLine, TagSnapshotRange<TTag>, TextBounds)
Adds an adornment to the Adornment
Parameter | Type | Description |
---|---|---|
reason | Adornment |
An Adornment |
viewLine | IText |
The current IText |
tagRange | Tag |
The ITag and the range it covers. |
bounds | Text |
The text bounds in which to render an adornment. |
OnClosed()
Occurs when the manager is closed and detached from the view.
Remarks
Overrides should release any event handlers set up in the manager's constructor.
Inherited Members
- AdornmentManagerBase<TView>.Close()
- AdornmentManagerBase<TView>.OnIsActiveChanged()
- AdornmentManagerBase<TView>.AdornmentLayer
- AdornmentManagerBase<TView>.IsActive
- AdornmentManagerBase<TView>.View
-
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()