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

SetTextCharacterExtra (gdi32)
 
.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern int SetTextCharacterExtra(IntPtr hdc, int nCharExtra);

User-Defined Types:

None.

Notes:

Windows XP: Using this function with gdiPlus measurestring function results in a measured string that does not include the character spacing. However, when drawing strings with gdiPlus drawString method the character spacing is recognized, but if the text is underlined the drawString does not recognize it.

Windows XP: Using this function with the DrawText function in GDI causes the "!" character and some other characters to be placed improperly. However, using the TextOut function to draw text with GDI causes all characters to be placed properly with additional extra character spacing.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation

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
Edit This Page
Find References
Show Printable Version
Revisions