Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

ExtTextOut (gdi32)
 
.
Summary

C# Signature:

[DllImport("gdi32.dll", EntryPoint = "ExtTextOutW")]
static extern bool ExtTextOut(IntPtr hdc, int X, int Y, uint fuOptions,
   [In] ref RECT lprc, [MarshalAs(UnmanagedType.LPWStr)] string lpString,
   uint cbCount, [In] IntPtr lpDx);

useful constants:

        [Flags]
        public enum ETOOptions : uint
        {
            ETO_CLIPPED = 0x4,
            ETO_GLYPH_INDEX = 0x10,
            ETO_IGNORELANGUAGE = 0x1000,
            ETO_NUMERICSLATIN = 0x800,
            ETO_NUMERICSLOCAL = 0x400,
            ETO_OPAQUE = 0x2,
            ETO_PDY = 0x2000,
            ETO_RTLREADING = 0x800,
        }

VB.NET Signature:

<DllImport("gdi32.dll")>

    Public Function ExtTextOut(
    hdc As IntPtr,
    X As Integer,
    Y As Integer,
    fuOptions As UInteger,
    <[In]> ByRef lprc As RECT,
    <MarshalAs(UnmanagedType.LPWStr)> lpString As String,
    cbCount As UInteger,
    <[In]> lpDx As IntPtr) As Boolean
    End Function

User-Defined Types:

See RECT.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

System.Drawing.Graphics.DrawString

Documentation
ExtTextOut on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions