表示将文本呈现在特定 ITextView的输入的 ITextBuffer 对象。
命名空间: Microsoft.VisualStudio.Text.Editor
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
Public Interface ITextViewModel _
Inherits IPropertyOwner, IDisposable
public interface ITextViewModel : IPropertyOwner,
IDisposable
public interface class ITextViewModel : IPropertyOwner,
IDisposable
type ITextViewModel =
interface
interface IPropertyOwner
interface IDisposable
end
public interface ITextViewModel extends IPropertyOwner, IDisposable
ITextViewModel 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
DataBuffer | 表示数据级别的 ITextBuffer。 |
![]() |
DataModel | 获取提供 DataBuffer 和托管 IContentType 视图的 ITextDataModel 。 |
![]() |
EditBuffer | 获取编辑器位置跟踪的 ITextBuffer 并应用编辑的。显示在视图中的所有文本都必须位于此缓冲区中。 |
![]() |
Properties | 获取属性所有者控制的属性集合。 (继承自 IPropertyOwner。) |
![]() |
VisualBuffer | 获取应在编辑器中显示内容的 ITextBuffer 。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Dispose | 执行与释放或重置非托管资源关联的应用程序定义的任务。 (继承自 IDisposable。) |
![]() |
GetNearestPointInVisualBuffer | 获取 VisualBuffer 中的一个点,该点与编辑缓冲区中的指定点相对应。如果该点是隐藏的或具有其他表示形式,则获取离该点最近的点。 |
![]() |
GetNearestPointInVisualSnapshot | 获取 VisualBuffer 中的一个点,该点与编辑缓冲区中的指定点相对应。如果该点是隐藏的或具有其他表示形式,则获取离该点最近的点。 |
![]() |
IsPointInVisualBuffer | 确定编辑缓冲区中的某个点是否呈现在可视缓冲区中。 |
页首
备注
您可以获取文本视图的文本视图模型与 TextViewModel 属性。 有关文本视图模型的更多信息,请参见 在编辑器内。