Provides the abstract base class for an ITag that can be used to mark an indicator over a text range.
- Inheritance:
- object object
- Implements:
-
IIndicator
Tag ITag
Constructors
IndicatorTagBase()
Initializes an instance of the class.
Properties
ContentProvider
Gets or sets the optional IContent
Property Value
- IContent
Provider : The optional IContent
Provider used to provide content for IntelliPrompt quick info popups or other UI.
GlyphSize
Gets the size of the indicator's glyph in an editor view margin.
Property Value
- Size:
The size of the indicator's glyph in an editor view margin.
Remarks
The default return value is 16, 16
.
Tag
Gets or sets the object that contains user-defined data about the object.
Methods
DrawGlyph(TextViewDrawContext, ITextViewLine, TagSnapshotRange<IIndicatorTag>, Rectangle)
Draws the indicator's glyph in an editor view margin.
Parameter | Type | Description |
---|---|---|
context | Text |
The Text |
viewLine | IText |
The IText |
tagRange | Tag |
The ITag and the range it covers. |
bounds | Rectangle | The bounds in which the indicator will be rendered. |
GetLocation(Rectangle)
Returns the location of the glyph, centered within the specified editor view margin bounds.
Parameter | Type | Description |
---|---|---|
bounds | Rectangle | The view margin bounds in which to render. |
Returns
- Point:
The location at which to render the glyph.
GetLocation(Rectangle, HorizontalAlignment, VerticalAlignment)
Returns the location of the glyph within the specified editor view margin bounds based on alignments.
Parameter | Type | Description |
---|---|---|
bounds | Rectangle | The view margin bounds in which to render. |
horizontalAlignment | Horizontal |
The horizontal alignment within the bounds. |
verticalAlignment | Vertical |
The vertical alignment within the bounds. |
Returns
- Point:
The location at which to render the glyph.