提供回调。 Visual Studio 环境,并其他进程用于操作文本标记。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<GuidAttribute("B1938F1B-D7A9-42F8-9960-D009027B3D2E")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextMarkerClient
[GuidAttribute("B1938F1B-D7A9-42F8-9960-D009027B3D2E")]
[InterfaceTypeAttribute()]
public interface IVsTextMarkerClient
[GuidAttribute(L"B1938F1B-D7A9-42F8-9960-D009027B3D2E")]
[InterfaceTypeAttribute()]
public interface class IVsTextMarkerClient
[<GuidAttribute("B1938F1B-D7A9-42F8-9960-D009027B3D2E")>]
[<InterfaceTypeAttribute()>]
type IVsTextMarkerClient = interface end
public interface IVsTextMarkerClient
IVsTextMarkerClient 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
ExecMarkerCommand | 对特定标记的命令在文本缓冲区中。 |
![]() |
GetMarkerCommandInfo | 查询标记对于命令信息。 |
![]() |
GetTipText | ,当鼠标悬停在标记时,返回文本标记的提示文本。 |
![]() |
MarkerInvalidated | 调用,当文本与标记由用户操作删除。 |
![]() |
OnAfterMarkerChange | 标记位置更改的信号。 |
![]() |
OnAfterSpanReload | 信号在标记下的文本已修改,但标记尚未删除。 |
![]() |
OnBeforeBufferClose | 通知发送文本缓冲区将关闭。 |
![]() |
OnBufferSave | 确定缓冲区是否保存到不同的名称。 |
页首
备注
在创建标记使用 M:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines.CreateLineMarker(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerClient,Microsoft.VisualStudio.TextManager.Interop.IVsTextLineMarker[]) 或 CreateStreamMarker时,可以提供将注意到的 IVsTextMarkerClient 的实现到新创建的标记的更改。 这允许您提供增强的标记行为,如提示文本和命令执行。 也可以使用此通知通过执行 GetMarkerCommandInfo 和 ExecMarkerCommand 方法会在标记的自定义上下文菜单。
对实现者的说明
实现会通知的此接口来单个标记的更改。
对调用者的说明
调用文本缓冲区,当对标记的更改发生。