Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than uxtheme, prefix the name with the module name and a period.
GetThemeTextExtent (uxtheme)
.
C# Signature:
[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, ref RECT boundingRect, out RECT extentRect);
[DllImport("uxtheme", ExactSpelling=true, CharSet=CharSet.Unicode)]
public extern static Int32 GetThemeTextExtent(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, String text, int textLength, UInt32 textFlags, int boundingRect, out RECT extentRect);
VB .NET Signature:
Declare Function GetThemeTextExtent Lib "uxtheme.dll" (ByVal hTheme As IntPtr, ByVal hdcAs IntPtr, _
ByVal iPartId As Integer, ByVal iStateId As Integer, ByVal text As String, Byval textLength As Integer, _
ByVal textFlags As Integer, ByVal boundingRect As RECT, ByRef extentRect As RECT) As Integer
ByVal iPartId As Integer, iStateId As Integer, ByVal text As String, Byval textLength As Integer, _
ByVal textFlags As Integer, ByVal boundingRect As RECT, ByRef extentRectAs RECT) As Integer
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Alternative Managed API:
TODO
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).