다음을 통해 공유


IDifferenceTextViewModel Interface

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

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Interface IDifferenceTextViewModel _
    Inherits ITextViewModel, IPropertyOwner, IDisposable
public interface IDifferenceTextViewModel : ITextViewModel, 
    IPropertyOwner, IDisposable
public interface class IDifferenceTextViewModel : ITextViewModel, 
    IPropertyOwner, IDisposable
type IDifferenceTextViewModel =  
    interface 
        interface ITextViewModel 
        interface IPropertyOwner 
        interface IDisposable 
    end
public interface IDifferenceTextViewModel extends ITextViewModel, IPropertyOwner, IDisposable

The IDifferenceTextViewModel type exposes the following members.

Properties

  Name Description
Public property DataBuffer Represents the ITextBuffer for the data level. (Inherited from ITextViewModel.)
Public property DataModel Gets the ITextDataModel that supplies the DataBuffer and the governing IContentType for the view. (Inherited from ITextViewModel.)
Public property EditBuffer Gets 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.)
Public property Properties Gets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public property Viewer Gets or sets a pointer to the difference viewer that created the view that uses this IDifferenceTextViewModel.
Public property ViewType Gets or sets the type of the view that uses this IDifferenceTextViewModel.
Public property VisualBuffer Gets the ITextBuffer whose contents should be presented in the editor. (Inherited from ITextViewModel.)

Top

Methods

  Name Description
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method GetNearestPointInVisualBuffer 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.)
Public method GetNearestPointInVisualSnapshot 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.)
Public method IsPointInVisualBuffer Determines whether a point in the edit buffer is represented in the visual buffer. (Inherited from ITextViewModel.)

Top

See Also

Reference

Microsoft.VisualStudio.Text.Differencing Namespace