共用方式為


IVsTextLayerMarker.DrawGlyph 方法

在特定的 DC 中繪製的圖像 (glyph) 和 方形

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

語法

'宣告
Function DrawGlyph ( _
    hdc As IntPtr, _
    pRect As RECT() _
) As Integer
int DrawGlyph(
    IntPtr hdc,
    RECT[] pRect
)
int DrawGlyph(
    [InAttribute] IntPtr hdc, 
    [InAttribute] array<RECT>^ pRect
)
abstract DrawGlyph : 
        hdc:IntPtr * 
        pRect:RECT[] -> int
function DrawGlyph(
    hdc : IntPtr, 
    pRect : RECT[]
) : int

參數

  • hdc
    類型:IntPtr

    [in]

  • pRect
    類型:array<RECT[]

    [in]

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextLayerMarker::DrawGlyph(
   [in] HDC hdc,
   [in] RECT *pRect
);

.NET Framework 安全性

請參閱

參考

IVsTextLayerMarker 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間