NormalizedTextRangeCollection.TranslateTo 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 the ranges in this collection to a new document snapshot.
public Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection TranslateTo(Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot textDocumentSnapshot, Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode textRangeTrackingMode);
member this.TranslateTo : Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshot * Microsoft.VisualStudio.Extensibility.Editor.TextRangeTrackingMode -> Microsoft.VisualStudio.Extensibility.Editor.NormalizedTextRangeCollection
Public Function TranslateTo (textDocumentSnapshot As ITextDocumentSnapshot, textRangeTrackingMode As TextRangeTrackingMode) As NormalizedTextRangeCollection
Parameters
- textDocumentSnapshot
- ITextDocumentSnapshot
The document snapshot to translate the ranges to.
- textRangeTrackingMode
- TextRangeTrackingMode
The tracking mode to use for the translation.
Returns
The translated ranges.