IVsTextMarkerType.DrawGlyphEx Method

Draws a glyph in the widget margin given a display device context and a bounding rectangle.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
Function DrawGlyphEx ( _
    dwFlags As UInteger, _
    hdc As IntPtr, _
    pRect As RECT(), _
    iLineHeight As Integer _
) As Integer
'Utilisation
Dim instance As IVsTextMarkerType
Dim dwFlags As UInteger
Dim hdc As IntPtr
Dim pRect As RECT()
Dim iLineHeight As Integer
Dim returnValue As Integer

returnValue = instance.DrawGlyphEx(dwFlags, _
    hdc, pRect, iLineHeight)
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

Parameters

  • dwFlags
    Type: System.UInt32
    [in] Options for drawing the glyph in the widget margin. For a list of dwFlags values, see GLYPHDRAWFLAGS.
  • hdc
    Type: System.IntPtr
    [in] Handle to a display device context that defines the visible region of interest.
  • iLineHeight
    Type: System.Int32
    [in] Height of the line, based on font settings.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Implement both DrawGlyph and IVsTextMarkerType.DrawGlyphEx. To provide greater flexibility, have the implementation of DrawGlyph call IVsTextMarkerType.DrawGlyphEx.

.NET Framework Security

See Also

Reference

IVsTextMarkerType Interface

IVsTextMarkerType Members

Microsoft.VisualStudio.TextManager.Interop Namespace