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

Gets the ITextDocument for which this text range applies.

ITextDocument Document { get; }

Property Value

ITextDocument:

The ITextDocument for which this text range applies.

TrackingModes

Gets a TextRangeTrackingModes indicating the tracking modes to use.

TextRangeTrackingModes TrackingModes { get; }

Property Value

TextRangeTrackingModes:

A TextRangeTrackingModes indicating the tracking modes to use.

Methods

Translate(ITextSnapshot)

Gets 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.

Translate(ITextVersion)

Gets 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.