TrackingRange Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TrackingRange(OffsetRange, TextRangeTrackingMode) |
Initializes a new instance of a TrackingRange with the specified range and tracking mode. |
TrackingRange(Int32, Int32, TextRangeTrackingMode) |
Initializes a new instance of a TrackingRange with the specified start point, length and tracking mode. |
TrackingRange(OffsetRange, TextRangeTrackingMode)
Initializes a new instance of a TrackingRange with the specified range and tracking mode.
public TrackingRange (Microsoft.VisualStudio.RpcContracts.Editor.OffsetRange range, Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode trackingMode);
new Microsoft.VisualStudio.RpcContracts.Editor.TrackingRange : Microsoft.VisualStudio.RpcContracts.Editor.OffsetRange * Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode -> Microsoft.VisualStudio.RpcContracts.Editor.TrackingRange
Public Sub New (range As OffsetRange, trackingMode As TextRangeTrackingMode)
Parameters
- range
- OffsetRange
The range.
- trackingMode
- TextRangeTrackingMode
The tracking mode.
Applies to
TrackingRange(Int32, Int32, TextRangeTrackingMode)
Initializes a new instance of a TrackingRange with the specified start point, length and tracking mode.
public TrackingRange (int start, int length, Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode trackingMode);
new Microsoft.VisualStudio.RpcContracts.Editor.TrackingRange : int * int * Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode -> Microsoft.VisualStudio.RpcContracts.Editor.TrackingRange
Public Sub New (start As Integer, length As Integer, trackingMode As TextRangeTrackingMode)
Parameters
- start
- Int32
The starting point of the range.
- length
- Int32
The length of the range.
- trackingMode
- TextRangeTrackingMode
The tracking mode.
Exceptions
length
is negative.