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.
- grfETO
Type: System.UInt32
[in] ExtTextOut flags.
- x
Type: System.Int32
[in] X coordinate of the text location.
- y
Type: System.Int32
[in] Y coordinate of the text location.
- prc
Type: array<Microsoft.VisualStudio.OLE.Interop.RECT[]
[in] A Windows rectangle (a struct).
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.