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