ITextViewModel Interface
Represents a set of ITextBuffer objects that take part in the presentation of text in a particular ITextView.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
| Name | Description | |
|---|---|---|
![]() | DataBuffer | Represents the ITextBuffer for the data level. |
![]() | DataModel | Gets the ITextDataModel that supplies the DataBuffer and the governing IContentType for the view. |
![]() | 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. |
![]() | Properties | (Inherited from IPropertyOwner.) |
![]() | VisualBuffer | Gets the ITextBuffer whose contents should be presented in the editor. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | (Inherited from IDisposable.) |
![]() | 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. |
![]() | 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. |
![]() | IsPointInVisualBuffer(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.

