IVsTextLineMarker.DrawGlyph Method (IntPtr, array<RECT )
Draws a glyph in the widget margin given a display context and bounding rectangle.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Déclaration
Function DrawGlyph ( _
hdc As IntPtr, _
pRect As RECT() _
) As Integer
'Utilisation
Dim instance As IVsTextLineMarker
Dim hdc As IntPtr
Dim pRect As RECT()
Dim returnValue As Integer
returnValue = instance.DrawGlyph(hdc, _
pRect)
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
Parameters
- hdc
Type: System.IntPtr
[in] Handle to a display device context that defines the visible region of interest for the glyph.
- pRect
Type: array<Microsoft.VisualStudio.OLE.Interop.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.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsTextMarker.DrawGlyph(IntPtr, array<RECT[])
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.