ITextVersionRange Interface
Provides the base requirements for a zero-based range of two normalized offset values within a text document that can be translated from one version of the document to another.
public interface ITextVersionRange
Properties
Document
The ITextDocument for which this text range applies.
TrackingModes
A TextRangeTrackingModes indicating the tracking modes to use.
Methods
Translate(ITextSnapshot)
Returns a TextSnapshotRange that indicates the text range within the specified target ITextSnapshot.
TextSnapshotRange? Translate(ITextSnapshot toSnapshot)
| Parameter | Type | Description |
|---|---|---|
| toSnapshot | ITextSnapshot | The target ITextSnapshot. |
Returns
- TextSnapshotRange?:
A TextSnapshotRange that indicates the text range within the specified target ITextSnapshot, or
nullif deleted.
Translate(ITextVersion)
Returns a TextRange that indicates the text range within the specified target ITextVersion.
TextRange? Translate(ITextVersion toVersion)
| Parameter | Type | Description |
|---|---|---|
| toVersion | ITextVersion | The target ITextVersion. |
Returns
- TextRange?:
A TextRange that indicates the text range within the specified target ITextVersion, or
nullif deleted.