IVsTextMarkerType.DrawGlyphEx(UInt32, IntPtr, RECT[], Int32) 方法

定义

给定显示设备上下文和边框,在小组件边距中绘制标志符号。

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

参数

dwFlags
UInt32

中用于在小组件边距中绘制标志符号的选项。 有关值的列表 dwFlags ,请参阅 GLYPHDRAWFLAGS

hdc
IntPtr

nativeint

中定义感兴趣区域的显示设备上下文的句柄。

pRect
RECT[]

中指向 RECT 结构的指针,该结构定义边框的左上角和右下角的坐标。

iLineHeight
Int32

中行的高度,基于字体设置。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

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

同时实现 DrawGlyphIVsTextMarkerType.DrawGlyphEx 。 为了提供更大的灵活性,请调用的实现 DrawGlyph IVsTextMarkerType.DrawGlyphEx

适用于