IVsTextMarkerType.DrawGlyphEx(UInt32, IntPtr, RECT[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws a glyph in the widget margin given a display device context and a bounding rectangle.
public:
int DrawGlyphEx(System::UInt32 dwFlags, IntPtr hdc, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ pRect, int iLineHeight);
public int DrawGlyphEx (uint dwFlags, IntPtr hdc, Microsoft.VisualStudio.OLE.Interop.RECT[] pRect, int iLineHeight);
abstract member DrawGlyphEx : uint32 * nativeint * Microsoft.VisualStudio.OLE.Interop.RECT[] * int -> int
Public Function DrawGlyphEx (dwFlags As UInteger, hdc As IntPtr, pRect As RECT(), iLineHeight As Integer) As Integer
Parameters
- dwFlags
- UInt32
[in] Options for drawing the glyph in the widget margin. For a list of dwFlags
values, see GLYPHDRAWFLAGS.
- hdc
-
IntPtr
nativeint
[in] Handle to a display device context that defines the visible region of interest.
- pRect
- RECT[]
[in] Pointer to a RECT structure, which defines the coordinates of the upper-left and lower-right corners of the bounding rectangle.
- iLineHeight
- Int32
[in] Height of the line, based on font settings.
Returns
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
.