次の方法で共有


IVsTextOut.VsTextOut Method

Outputs text to a location specified to a Hardware Device Context (HDC).

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
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
'使用
Dim instance As IVsTextOut
Dim hdc As UInteger
Dim cch As Integer
Dim pText As UShort()
Dim grfETO As UInteger
Dim x As Integer
Dim y As Integer
Dim prc As RECT()
Dim returnValue As Integer

returnValue = instance.VsTextOut(hdc, _
    cch, pText, grfETO, x, y, prc)
int VsTextOut(
    uint hdc,
    int cch,
    ushort[] pText,
    uint grfETO,
    int x,
    int y,
    RECT[] prc
)
int VsTextOut(
    [InAttribute] unsigned int hdc, 
    [InAttribute] int cch, 
    [InAttribute] array<unsigned short>^ pText, 
    [InAttribute] unsigned int grfETO, 
    [InAttribute] int x, 
    [InAttribute] int y, 
    [InAttribute] array<RECT>^ prc
)
abstract VsTextOut : 
        hdc:uint32 * 
        cch:int * 
        pText:uint16[] * 
        grfETO:uint32 * 
        x:int * 
        y:int * 
        prc:RECT[] -> int 
function VsTextOut(
    hdc : uint, 
    cch : int, 
    pText : ushort[], 
    grfETO : uint, 
    x : int, 
    y : int, 
    prc : RECT[]
) : int

Parameters

  • hdc
    Type: System.UInt32
    [in] Pointer to a long type to a hardware device context (HDC).
  • cch
    Type: System.Int32
    [in] Number of characters, or -1 if null-terminated.
  • pText
    Type: array<System.UInt16[]
    [in] OLE String that represents the text.
  • x
    Type: System.Int32
    [in] X coordinate of the text location.
  • y
    Type: System.Int32
    [in] Y coordinate of the text location.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From 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 Security

See Also

Reference

IVsTextOut Interface

IVsTextOut Members

Microsoft.VisualStudio.Shell.Interop Namespace