Share via


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

'Declaration
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
)
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

Microsoft.VisualStudio.Shell.Interop Namespace