An NDoc Documented Class Library

XPThemeManager.GetThemeTextExtent Method (Graphics, Int32, Int32, String, StringFormat)

Gets the text extent for a particular string when rendered using the theme manager

public Rectangle GetThemeTextExtent(
   Graphics graphics,
   int partId,
   int stateId,
   string text,
   StringFormat format
);

Parameters

graphics
The graphics surface on which to draw
partId
The part to draw (see schemadefs.h)
stateId
The state to draw (see schemadefs.h)
text
The text to measure
format
The format of the text

Return Value

The bounding rectangle for the text on the surface

See Also

XPThemeManager Class | XPThemeManager Members | Genghis.Windows.Forms Namespace | XPThemeManager.GetThemeTextExtent Overload List