Share via


IVsTextOut.VsTextOut Method

Definition

Overloads

VsTextOut(IntPtr, Int32, UInt16[], UInt32, Int32, Int32, RECT[])
VsTextOut(UInt32, Int32, UInt16[], UInt32, Int32, Int32, RECT[])

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

VsTextOut(IntPtr, Int32, UInt16[], UInt32, Int32, Int32, RECT[])

public:
 int VsTextOut(IntPtr hdc, int cch, cli::array <System::UInt16> ^ pText, System::UInt32 grfETO, int x, int y, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
public int VsTextOut (IntPtr hdc, int cch, ushort[] pText, uint grfETO, int x, int y, Microsoft.VisualStudio.OLE.Interop.RECT[] prc);
abstract member VsTextOut : nativeint * int * uint16[] * uint32 * int * int * Microsoft.VisualStudio.OLE.Interop.RECT[] -> int
Public Function VsTextOut (hdc As IntPtr, cch As Integer, pText As UShort(), grfETO As UInteger, x As Integer, y As Integer, prc As RECT()) As Integer

Parameters

hdc
IntPtr

nativeint

cch
Int32
pText
UInt16[]
grfETO
UInt32
x
Int32
y
Int32
prc
RECT[]

Returns

Applies to

VsTextOut(UInt32, Int32, UInt16[], UInt32, Int32, Int32, RECT[])

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

public:
 int VsTextOut(System::UInt32 hdc, int cch, cli::array <System::UInt16> ^ pText, System::UInt32 grfETO, int x, int y, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
public:
 int VsTextOut(unsigned int hdc, int cch, Platform::Array <unsigned short> ^ pText, unsigned int grfETO, int x, int y, Platform::Array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ prc);
int VsTextOut(unsigned int hdc, int cch, std::Array <unsigned short> const & pText, unsigned int grfETO, int x, int y, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & prc);
public int VsTextOut (uint hdc, int cch, ushort[] pText, uint grfETO, int x, int y, Microsoft.VisualStudio.OLE.Interop.RECT[] prc);
abstract member VsTextOut : uint32 * int * uint16[] * uint32 * int * int * Microsoft.VisualStudio.OLE.Interop.RECT[] -> int
Public 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

Parameters

hdc
UInt32

[in] Pointer to a long type to a hardware device context (HDC).

cch
Int32

[in] Number of characters, or -1 if null-terminated.

pText
UInt16[]

[in] OLE String that represents the text.

grfETO
UInt32

[in] ExtTextOut flags.

x
Int32

[in] X coordinate of the text location.

y
Int32

[in] Y coordinate of the text location.

prc
RECT[]

[in] A Windows rectangle (a struct).

Returns

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  
);  

Applies to