IVsTextLineMarker 接口

提供对和操作确定缓冲区中的一个文本标记。 此接口具有更改的方法检索或二维坐标。

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

语法

声明
<GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")> _
<InterfaceTypeAttribute()> _
Public Interface IVsTextLineMarker _
    Inherits IVsTextMarker
[GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[InterfaceTypeAttribute()]
public interface IVsTextLineMarker : IVsTextMarker
[GuidAttribute(L"31E2DCA7-CCFF-4E09-B433-17C739CF69AD")]
[InterfaceTypeAttribute()]
public interface class IVsTextLineMarker : IVsTextMarker
[<GuidAttribute("31E2DCA7-CCFF-4E09-B433-17C739CF69AD")>]
[<InterfaceTypeAttribute()>]
type IVsTextLineMarker =  
    interface 
        interface IVsTextMarker 
    end
public interface IVsTextLineMarker extends IVsTextMarker

IVsTextLineMarker 类型公开以下成员。

方法

  名称 说明
公共方法 DrawGlyph 绘制中给出的小部件边距的标志符号显示上下文和边框。
公共方法 ExecMarkerCommand 执行一个文本标记文本标记。
公共方法 GetBehavior 返回 SetBehavior 方法设置的文本标记行为。
公共方法 GetCurrentSpan 返回文本标记的当前位置。
公共方法 GetLineBuffer 提供对关联的文本缓冲区。
公共方法 GetMarkerCommandInfo 返回文本标记订单信息。
公共方法 GetPriorityIndex 返回文本标记优先级索引,当最大值获取最顶层的位置。
公共方法 GetTipText 在标记类型的一个提示返回文本显示。
公共方法 GetType 返回文本标记的类型。
公共方法 GetVisualStyle 返回一个标记类型的视觉样式。
公共方法 Invalidate 防止一个文本标记显示在用户界面中。
公共方法 ResetSpan 重置文本标记的位置。
公共方法 SetBehavior 设置文本标记的行为。
公共方法 SetType 设置文本标记的类型。
公共方法 SetVisualStyle 设置标记类型的视觉样式。
公共方法 UnadviseClient Unadvises 客户端,因此,如果有一个。

页首

备注

此接口表示标记。 标记是通过调用 CreateLineMarker 方法创建的。 IVsTextLineMarker 接口与 IVsTextStreamMarker 的不同之处在于使用两维 [行],索引坐标是一维线性坐标。 但是, IVsTextLineMarkerIVsTextStreamMarker 由同一基础对象实现,并且可以对它们之间的 IUnknown::QueryInterface 方法。

,则在创建集合时,标记浮动在指定的文本边界。 如果文本删除,标记已被删除。 如果文本增大或缩小,标记相应地增大或缩小。

对实现者的说明

实现由 Visual Studio 文本标记。

对调用者的说明

调用 Vspackage (或任何文本缓冲区客户端)。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间