IVsTextLineMarker.DrawGlyph(IntPtr, RECT[]) 方法

定义

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

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

参数

hdc
IntPtr

nativeint

中用于定义标志符号感兴趣区域的显示设备上下文的句柄。

pRect
RECT[]

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

返回

Int32

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

实现

注解

COM 签名

从 textmgr:

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

通常,此方法仅由核心文本编辑器调用,以便在小组件边距中绘制标记标志符号。 标志符号的示例包括箭头和断点。 字形在核心文本编辑器的小组件边距内绘制。

适用于