An NDoc Documented Class Library

XPThemeManager.GetThemeBackgroundExtent Method 

Gets the rectangle bounding the theme background

public Rectangle GetThemeBackgroundExtent(
   Graphics graphics,
   int partId,
   int stateId,
   Rectangle bounds
);

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 themed object

Return Value

The bounding rectangle of the background of the themed object

See Also

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