An NDoc Documented Class Library

XPThemeManager.GetThemePartSize Method 

Returns the size of a particular element of a part on a graphics surface

public Size GetThemePartSize(
   Graphics graphics,
   int partId,
   int stateId,
   Rectangle bounds,
   THEMESIZE size
);

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)
bounds
The bounds of the part
size
The size to return (see schemadefs.h)

Return Value

The size of the requested part element

See Also

XPThemeManager Class | XPThemeManager Members | Genghis.Windows.Forms Namespace