Partager via


IDifferenceTextViewModel Interface

Definition

Represents a set of zero or more ITextBuffer objects that are unique to the presentation of text in a particular ITextView.

public interface class IDifferenceTextViewModel : IDisposable, Microsoft::VisualStudio::Text::Editor::ITextViewModel, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface IDifferenceTextViewModel : IDisposable, Microsoft.VisualStudio.Text.Editor.ITextViewModel, Microsoft.VisualStudio.Utilities.IPropertyOwner
type IDifferenceTextViewModel = interface
    interface ITextViewModel
    interface IPropertyOwner
    interface IDisposable
Public Interface IDifferenceTextViewModel
Implements IDisposable, IPropertyOwner, ITextViewModel
Implements

Properties

DataBuffer

Represents the ITextBuffer for the data level. The data level text buffer is the highest buffer in the graph that is shared across multiple views and is therefore the base of the view model.

(Inherited from ITextViewModel)
DataModel

The ITextDataModel that supplies the DataBuffer and the governing IContentType for the view.

(Inherited from ITextViewModel)
EditBuffer

The ITextBuffer in which editing positions are tracked and to which edits are applied. All the text that appears in the view must reside in this buffer.

(Inherited from ITextViewModel)
Properties

The collection of properties controlled by the property owner.

(Inherited from IPropertyOwner)
Viewer

A pointer to the difference viewer that created the view that uses this IDifferenceTextViewModel.

ViewType

The type of the view that uses this IDifferenceTextViewModel.

VisualBuffer

The ITextBuffer whose contents should be presented in the editor.

(Inherited from ITextViewModel)

Methods

GetNearestPointInVisualBuffer(SnapshotPoint)

Gets a point in the VisualBuffer that corresponds to the specified point in the edit buffer. If the point is hidden or has an alternative representation, gets the nearest point to it.

(Inherited from ITextViewModel)
GetNearestPointInVisualSnapshot(SnapshotPoint, ITextSnapshot, PointTrackingMode)

Gets a point in the VisualBuffer that corresponds to the specified point in the edit buffer. If the point is hidden or has an alternative representation, gets the nearest point to it.

(Inherited from ITextViewModel)
IsPointInVisualBuffer(SnapshotPoint, PositionAffinity)

Determines whether a point in the edit buffer is represented in the visual buffer.

(Inherited from ITextViewModel)

Applies to