Share via


IVsTextMarkerType.DrawGlyphEx, méthode

Dessine un glyphe dans la marge de widget donnée un contexte de périphérique d'affichage et un rectangle englobant.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
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

Paramètres

  • dwFlags
    Type : UInt32

    [in] options pour dessiner le glyphe dans la marge de widget. Pour une liste de valeurs d'dwFlags, consultez l'GLYPHDRAWFLAGS.

  • hdc
    Type : IntPtr

    [in] handle à un contexte de périphérique d'affichage qui définit la région visible d'intérêt.

  • pRect
    Type : array<RECT[]

    [in] pointeur à une structure RECT, qui définit les coordonnées supérieure gauche et des angles inférieurs droits du rectangle englobant.

  • iLineHeight
    Type : Int32

    [in] hauteur de la ligne, selon des paramètres de la police.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

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

Implémentez l'DrawGlyph et l'IVsTextMarkerType.DrawGlyphEx. Pour fournir une flexibilité plus supérieure, ayez l'implémentation de l'appel IVsTextMarkerType.DrawGlyphEx d'DrawGlyph.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextMarkerType Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms