Drawing3d documented Class Library

FeaturesW32.TextOut Method

The TextOut function writes a character string at the specified location, using the currently selected font, background color, and text color.

[Visual Basic]
<PreserveSig> _
<DllImport(EntryPoint:="TextOut", CharSet:=CharSet.Auto, SetLastError:=False, ExactSpelling:=False, PreserveSig:=True, CallingConvention:=CallingConvention.Winapi, BestFitMapping:=False, ThrowOnUnmappableChar:=False, Value:="gdi32.dll")> _
Public Shared Sub TextOut( _
   ByVal hDC As IntPtr, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal lpString As String, _
   ByVal nCount As Integer _
)
[C#]
[PreserveSig]
[DllImport(EntryPoint="TextOut", CharSet=CharSet.Auto, SetLastError=False, ExactSpelling=False, PreserveSig=True, CallingConvention=CallingConvention.Winapi, BestFitMapping=False, ThrowOnUnmappableChar=False, Value="gdi32.dll")]
public static int TextOut(
   IntPtr hDC,
   int x,
   int y,
   string lpString,
   int nCount
);

Parameters

hDC
A handle to the device context.
x
The x-coordinate, in logical coordinates, of the reference point that the system uses to align the string.
y
The y-coordinate, in logical coordinates, of the reference point that the system uses to align the string.
lpString
A pointer to the string to be drawn. The string does not need to be zero-terminated, because cchString specifies the length of the string.
nCount
The length of the string pointed to by lpString, in characters.

Return Value

See Also

FeaturesW32 Class | Drawing3d.OS.Windows Namespace