Partager via


IVsTextLineMarker.DrawGlyph(IntPtr, RECT[]) Method

Definition

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

public:
 int DrawGlyph(IntPtr hdc, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRect);
public int DrawGlyph (IntPtr hdc, Microsoft.VisualStudio.OLE.Interop.RECT[] pRect);
abstract member DrawGlyph : nativeint * Microsoft.VisualStudio.OLE.Interop.RECT[] -> int
Public Function DrawGlyph (hdc As IntPtr, pRect As RECT()) As Integer

Parameters

hdc
IntPtr

nativeint

[in] Handle to a display device context that defines the visible region of interest for the glyph.

pRect
RECT[]

[in] Pointer to a RECT structure, which defines the coordinates of the upper-left and lower-right corners of the bounding rectangle for the glyph.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From textmgr.idl:

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

This method is typically called only by the core text editor to draw a marker glyph in the widget margin. Examples of glyphs include arrows and breakpoints. Glyphs are drawn in the widget margin of the core text editor.

Applies to