GetTextMetrics (gdi32)
Last changed: Szymon Katra-95.49.0.3

.
Summary

C# Signature:

[DllImport("gdi32.dll", CharSet = CharSet.Unicode)]
static extern bool GetTextMetrics(IntPtr hdc, out TEXTMETRIC lptm);

User-Defined Types:

TEXTMETRIC

Notes:

It's very important to use the Charset.Unicode attribute or you will get a runtime exception.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation