Export (0) Print
Expand All

ITextViewModel Interface

Represents a set of ITextBuffer objects that take part in the presentation of text in a particular ITextView.

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

public interface ITextViewModel : IPropertyOwner, 
	IDisposable

The ITextViewModel type exposes the following members.

  NameDescription
Public propertyDataBufferRepresents the ITextBuffer for the data level.
Public propertyDataModelGets the ITextDataModel that supplies the DataBuffer and the governing IContentType for the view.
Public propertyEditBufferGets 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.
Public propertyPropertiesGets the collection of properties controlled by the property owner. (Inherited from IPropertyOwner.)
Public propertyVisualBufferGets the ITextBuffer whose contents should be presented in the editor.
Top

  NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodGetNearestPointInVisualBufferGets 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.
Public methodGetNearestPointInVisualSnapshotGets 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.
Public methodIsPointInVisualBufferDetermines whether a point in the edit buffer is represented in the visual buffer.
Top

You can get the text view model for the text view with the TextViewModel property. For more information about the text view model, see Inside the Editor.

Show:
© 2014 Microsoft