TrackingRange.ToTrackingTextRange(ITextDocumentSnapshot) Method
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.
Allows conversion to a TrackingTextRange.
public Microsoft.VisualStudio.Extensibility.Editor.TrackingTextRange ToTrackingTextRange (Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot textDocumentSnapshot);
member this.ToTrackingTextRange : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot -> Microsoft.VisualStudio.Extensibility.Editor.TrackingTextRange
Public Function ToTrackingTextRange (textDocumentSnapshot As ITextDocumentSnapshot) As TrackingTextRange
Parameters
- textDocumentSnapshot
- ITextDocumentSnapshot
The text document version on which to base the range.
Returns
The range converted to a TrackingTextRange.
Exceptions
textDocumentSnapshot
is null.