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

NameDescription
System_CAPS_pubpropertyDataBuffer

Represents the ITextBuffer for the data level.

System_CAPS_pubpropertyDataModel

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

System_CAPS_pubpropertyEditBuffer

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.

System_CAPS_pubpropertyProperties

(Inherited from IPropertyOwner.)

System_CAPS_pubpropertyVisualBuffer

Gets the ITextBuffer whose contents should be presented in the editor.

NameDescription
System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodGetNearestPointInVisualBuffer(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.

System_CAPS_pubmethodGetNearestPointInVisualSnapshot(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.

System_CAPS_pubmethodIsPointInVisualBuffer(SnapshotPoint, PositionAffinity)

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

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.

Return to top
Show: