In This Article

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.

ITextDocument Document { get; }

Property Value

ITextDocument

TrackingModes

A TextRangeTrackingModes indicating the tracking modes to use.

TextRangeTrackingModes TrackingModes { get; }

Property Value

TextRangeTrackingModes

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 null if 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 null if deleted.

Extension Methods