Share via


NormalizedTextRangeCollection.TranslateTo Method

Definition

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.

Applies to