VsTextView 接口

管理编辑器窗口的文本视图。 包含方法控制文本视图。 视图实质上是在 UI 显示中编辑窗口。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
<GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")> _
Public Interface VsTextView _
    Inherits IVsTextView
[GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")]
public interface VsTextView : IVsTextView
[GuidAttribute(L"BB23A14B-7C61-469A-9890-A95648CED5E6")]
public interface class VsTextView : IVsTextView
[<GuidAttribute("BB23A14B-7C61-469A-9890-A95648CED5E6")>]
type VsTextView =  
    interface 
        interface IVsTextView 
    end
public interface VsTextView extends IVsTextView

VsTextView 类型公开以下成员。

方法

  名称 说明
公共方法 AddCommandFilter 添加命令筛选器到现有指挥系统筛选器。 (继承自 IVsTextView。)
公共方法 CenterColumns 在视图中居中放置文本的指定列。 (继承自 IVsTextView。)
公共方法 CenterLines 在视图中居中放置文本指定的行。 (继承自 IVsTextView。)
公共方法 ClearSelection 清除当前选择。 (继承自 IVsTextView。)
公共方法 CloseView 关闭和注销与视图管理器的视图。 (继承自 IVsTextView。)
公共方法 EnsureSpanVisible 确保文本垂直和水平视图中,。 (继承自 IVsTextView。)
公共方法 GetBuffer 返回文本缓冲区的当前内容。 (继承自 IVsTextView。)
公共方法 GetCaretPos 返回光标位置的行和列索引。 (继承自 IVsTextView。)
公共方法 GetLineAndColumn 将文本流位置为行和列索引。 (继承自 IVsTextView。)
公共方法 GetLineHeight 返回行的像素高度。 (继承自 IVsTextView。)
公共方法 GetNearestPosition 转换行和列索引为文本流位置。 (继承自 IVsTextView。)
公共方法 GetPointOfLineColumn 返回特定行和列的左上角的坐标。 (继承自 IVsTextView。)
公共方法 GetScrollInfo 返回指定滚动条的核心文本编辑器滚动条设置。 (继承自 IVsTextView。)
公共方法 GetSelectedText 返回选定文本的副本。 (继承自 IVsTextView。)
公共方法 GetSelection ,如果有一个,返回文本范围与当前选择对应。 (继承自 IVsTextView。)
公共方法 GetSelectionDataObject 返回选定文本副本以 IDataObject 接口布局。 (继承自 IVsTextView。)
公共方法 GetSelectionMode 返回当前选择模式。 (继承自 IVsTextView。)
公共方法 GetSelectionSpan 返回文本范围与选择。 (继承自 IVsTextView。)
公共方法 GetTextStream 返回文本指定的流字符串中的。 (继承自 IVsTextView。)
公共方法 GetWindowHandle 返回此视图的窗口句柄。 (继承自 IVsTextView。)
公共方法 GetWordExtent 返回当前单词区域。 (继承自 IVsTextView。)
公共方法 HighlightMatchingBrace 显示在语言构造的匹配的大括号。 (继承自 IVsTextView。)
公共方法 Initialize 创建视图并允许客户端指定一个或多 TextViewInitFlags 选项。 (继承自 IVsTextView。)
公共方法 PositionCaretForEditing 在位置放置脱字号适用于功能。 (继承自 IVsTextView。)
公共方法 RemoveCommandFilter 从指挥系统筛选器的命令筛选器。 (继承自 IVsTextView。)
公共方法 ReplaceTextOnLine 替换行文本。 (继承自 IVsTextView。)
公共方法 RestrictViewRange 未提供方法信息。方法不执行任何操作。 (继承自 IVsTextView。)
公共方法 SendExplicitFocus 发送显式焦点切换到窗口。 (继承自 IVsTextView。)
公共方法 SetBuffer 相关文本缓冲区与视图。 (继承自 IVsTextView。)
公共方法 SetCaretPos 设置选择的终结点的坐标。 (继承自 IVsTextView。)
公共方法 SetScrollPosition 设置指定的滚动条的核心文本编辑器滚动条设置。 (继承自 IVsTextView。)
公共方法 SetSelection 为指定的文本。 (继承自 IVsTextView。)
公共方法 SetSelectionMode 设置选择模式。 (继承自 IVsTextView。)
公共方法 SetTopLine 设置在视图的顶部行将为基线。 (继承自 IVsTextView。)
公共方法 UpdateCompletionStatus 用于运行完成控件。 (继承自 IVsTextView。)
公共方法 UpdateTipWindow 更新提示窗口。 (继承自 IVsTextView。)
公共方法 UpdateViewFrameCaption 强制视图更新其框架窗口标题,如 “[只读]”。 (继承自 IVsTextView。)

页首

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间