TaggedTrackingTextRange<T>.TranslateTo(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.
Translates this TrackingTextRange to an older or newer ITextDocumentSnapshot version.
public Microsoft.VisualStudio.Extensibility.Editor.TaggedTrackingTextRange<T> TranslateTo(Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot targetDocumentVersion);
member this.TranslateTo : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot -> Microsoft.VisualStudio.Extensibility.Editor.TaggedTrackingTextRange<'T (requires 'T :> Microsoft.VisualStudio.Extensibility.Editor.ITag)>
Public Function TranslateTo (targetDocumentVersion As ITextDocumentSnapshot) As TaggedTrackingTextRange(Of T)
Parameters
- targetDocumentVersion
- ITextDocumentSnapshot
The document version to which to translate.
Returns
A new tagged tracking range.
Exceptions
targetDocumentVersion is null.
targetDocumentVersion does not refer to the same underlying text document as this TextPosition.