BreakpointIndicatorTag Class
Represents an IIndicatorTag that renders a breakpoint over a text range.
public class BreakpointIndicatorTag : IndicatorClassificationTagBase, IIndicatorTag, IClassificationTag, ITag
- Inheritance:
- object IndicatorTagBase IndicatorClassificationTagBase object
- Implements:
- IIndicatorTag IClassificationTag ITag
Constructors
BreakpointIndicatorTag()
Initializes an instance of the class.
public BreakpointIndicatorTag()
Properties
ClassificationType
The IClassificationType associated with this tag.
IsEnabled
Indicates whether the breakpoint is enabled.
public bool IsEnabled { get; set; }
Property Value
- bool:
trueif the breakpoint 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.
[Obsolete("Use one of the new SetProperty or OnPropertyChanged methods instead of this deprecated NotifyPropertyChanged method.", false)]
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. |
OnPropertyChanged(string?)
Raises the PropertyChanged event.
protected void OnPropertyChanged(string? propertyName = null)
| Parameter | Type | Description |
|---|---|---|
| propertyName | string | (Optional) The name of the property that changed. |
SetProperty<T>(ref T, T, string?)
Called from a property setter to change the backing field's value and raise PropertyChanged notification events if the new value is not equal to the current value.
protected bool SetProperty<T>(ref T field, T newValue, string? propertyName = null)
- Type Parameters:
-
T-The type of the property that changed.
| Parameter | Type | Description |
|---|---|---|
| field | T | The backing field that holds the property's value, which may be updated. |
| newValue | T | The new property value. |
| propertyName | string | (Optional) The name of the property that changed. |
Returns
- bool:
trueif the property was changed; otherwise,false.
Events
PropertyChanged
Occurs when a property value changes.
Inherited Members
- IndicatorTagBase.GetLocation(Rect)
- IndicatorTagBase.GetLocation(Rect, HorizontalAlignment, VerticalAlignment)
- IndicatorTagBase.ContentProvider
- IndicatorTagBase.GlyphSize
- IndicatorTagBase.Tag
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()