共用方式為


IVsTextMarkerType.DrawGlyphEx 方法

以指定顯示裝置內容和度量的矩形的 widget 邊界中的圖像 (glyph)。

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

語法

'宣告
Function DrawGlyphEx ( _
    dwFlags As UInteger, _
    hdc As IntPtr, _
    pRect As RECT(), _
    iLineHeight As Integer _
) As Integer
int DrawGlyphEx(
    uint dwFlags,
    IntPtr hdc,
    RECT[] pRect,
    int iLineHeight
)
int DrawGlyphEx(
    [InAttribute] unsigned int dwFlags, 
    [InAttribute] IntPtr hdc, 
    [InAttribute] array<RECT>^ pRect, 
    [InAttribute] int iLineHeight
)
abstract DrawGlyphEx : 
        dwFlags:uint32 * 
        hdc:IntPtr * 
        pRect:RECT[] * 
        iLineHeight:int -> int
function DrawGlyphEx(
    dwFlags : uint, 
    hdc : IntPtr, 
    pRect : RECT[], 
    iLineHeight : int
) : int

參數

  • dwFlags
    類型:UInt32

    [in]用來繪製 widget 邊界中的圖像 (glyph) 選項。 為一系列dwFlags的值,請參閱GLYPHDRAWFLAGS

  • hdc
    類型:IntPtr

    [in]定義感興趣的可見區域的顯示裝置內容的控制代碼。

  • pRect
    類型:array<RECT[]

    [in]指向 RECT 結構,它定義了這個界限矩形左上角和右下角的座標。

  • iLineHeight
    類型:Int32

    [in]字型設定為基礎的一行的高度。

傳回值

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

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextMarkerType::DrawGlyphEx(
   [in] DWORD dwFlags,
   [in] HDC hdc,
   [in] RECT *pRect,
   [in] long iLineHeight
);

實作兩個DrawGlyphIVsTextMarkerType.DrawGlyphEx。 要提供更大的彈性,都必須實作DrawGlyph呼叫IVsTextMarkerType.DrawGlyphEx

.NET Framework 安全性

請參閱

參考

IVsTextMarkerType 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間