共用方式為


IVsTextLayerMarker 介面

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")> _
Public Interface IVsTextLayerMarker _
    Inherits IVsTextMarker
[InterfaceTypeAttribute()]
[GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")]
public interface IVsTextLayerMarker : IVsTextMarker
[InterfaceTypeAttribute()]
[GuidAttribute(L"28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")]
public interface class IVsTextLayerMarker : IVsTextMarker
[<InterfaceTypeAttribute()>]
[<GuidAttribute("28C149D2-8FCB-4AB3-8584-9A2747F3F8FC")>]
type IVsTextLayerMarker =  
    interface 
        interface IVsTextMarker 
    end
public interface IVsTextLayerMarker extends IVsTextMarker

IVsTextLayerMarker 類型會公開下列成員。

方法

  名稱 描述
公用方法 DrawGlyph 在特定的 DC 中繪製的圖像 (glyph) 和 方形
公用方法 DrawGlyphEx
公用方法 ExecMarkerCommand
公用方法 GetBehavior 傳回標記行為。
公用方法 GetCurrentSpan 傳回目前範圍的位置。
公用方法 GetMarkerCommandInfo
公用方法 GetPriorityIndex 傳回優先順序的索引。
公用方法 GetTextLayer
公用方法 GetTipText 傳回 [工具提示文字。
公用方法 GetType 傳回標記型別。
公用方法 GetVisualStyle 傳回之資料標記的視覺化樣式。
公用方法 Invalidate 防止標記出現在 UI 中。
公用方法 IsInvalidated
公用方法 QueryClientInterface 可讓呼叫端知道標記是否已經變成無效
公用方法 ResetSpan 重設資料標記的位置。
公用方法 SetBehavior
公用方法 SetType
公用方法 SetVisualStyle
公用方法 UnadviseClient 如果有的話,請取消通知用戶端。

回頁首

備註

這個介面會公開由習慣生活在任意的層級的標記物件。 它們是一種更廣泛的概念比緩衝區的標記。 緩衝區的標記是由定義層級的資料標記,但並非緩衝區部份圖層也可以產生標記。 如果您有IVsTextLineMarkerIVsTextStreamMarker您可以保證QueryInterface的IVsTextLayerMarker,但無法從。 (這會是緩衝區產生標記,則為 true 不過)。

請參閱

參考

Microsoft.VisualStudio.TextManager.Interop 命名空間