In This Article

BookmarkIndicatorTag Class

Represents an IIndicatorTag that renders a bookmark indicator.

public class BookmarkIndicatorTag : IndicatorTagBase, IIndicatorTag, ITag, INotifyPropertyChanged
Inheritance:
Object IndicatorTagBase Object
Implements:
IIndicatorTag ITag

Constructors

BookmarkIndicatorTag()

public BookmarkIndicatorTag()

Properties

IsEnabled

Gets or sets whether the bookmark is enabled.

public bool IsEnabled { get; set; }

Property Value

Boolean:

true if the bookmark is enabled; otherwise, false.

Methods

DrawGlyph(TextViewDrawContext, ITextViewLine, TagSnapshotRange<IIndicatorTag>, Rect)

Draws the indicator's glyph in an editor view margin.

public override void DrawGlyph(TextViewDrawContext context, ITextViewLine viewLine, TagSnapshotRange<IIndicatorTag> tagRange, Rect bounds)
Parameter Type Description
context TextViewDrawContext

The TextViewDrawContext to use for rendering.

viewLine ITextViewLine

The ITextViewLine for which the glyph is rendered.

tagRange TagSnapshotRange<IIndicatorTag>

The ITag and the range it covers.

bounds Rect

The bounds in which the indicator will be rendered.

NotifyPropertyChanged(String)

Notifies that a property has changed.

protected void NotifyPropertyChanged(string propertyName)
Parameter Type Description
propertyName String

The name of the property that was changed.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameter Type Description
e PropertyChangedEventArgs

The PropertyChangedEventArgs that contains the event data.

Events

PropertyChanged

Occurs when a property has been changed.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler

Inherited Members