IVsTextMarkerType.DrawGlyph 方法

将自定义标记标志符号位置。小部件边距可以绘制。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function DrawGlyph ( _
    hdc As IntPtr, _
    pRect As RECT() _
) As Integer
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

参数

  • hdc
    类型:IntPtr

    [in] 用于定义可视区域标志符号的利益的显示设备上下文的句柄。 

  • pRect
    类型:array<RECT[]

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

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

使用此方法的通知确定是否可以绘制在小部件边距的自定义标记标志符号。 标志符号的示例包括箭头和断点。 标志符号在核心文本编辑器的小部件边距绘制。

.NET Framework 安全性

请参阅

参考

IVsTextMarkerType 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间