IVsTextOut.VsTextOut 方法

输出文本为位置指定为硬件设备上下文 (HDC)。

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

语法

声明
Function VsTextOut ( _
    hdc As UInteger, _
    cch As Integer, _
    pText As UShort(), _
    grfETO As UInteger, _
    x As Integer, _
    y As Integer, _
    prc As RECT() _
) As Integer
int VsTextOut(
    uint hdc,
    int cch,
    ushort[] pText,
    uint grfETO,
    int x,
    int y,
    RECT[] prc
)

参数

  • hdc
    类型:System.UInt32
    [in] 为 long 类型的指针硬件设备上下文 (HDC)。
  • cch
    类型:System.Int32
    [in] 字符数或 -1,则 null 终止。
  • pText
    类型:array<System.UInt16[]
    [in] 一个表示文本的 OLE 字符串。

返回值

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

备注

COM 签名

从 vsshell.idl:

HRESULT IVsTextOut::VsTextOut(
   [in] DWORD_PTR hdc, 
   [in] int cch, 
   [in, size_is(cch)] LPCOLESTR pText, 
   [in] DWORD grfETO, 
   [in] int x, 
   [in] int y
);

.NET Framework 安全性

请参见

参考

IVsTextOut 接口

Microsoft.VisualStudio.Shell.Interop 命名空间