An NDoc Documented Class Library

XPThemeManager.GetThemeBackgroundRegion Method 

Gets the region corresponding to a theme background

public Region GetThemeBackgroundRegion(
   Graphics graphics,
   int partId,
   int stateId,
   Rectangle targetRect
);

Parameters

graphics
The graphics surface
partId
The part to measure (see schemadefs.h)
stateId
The state of the part (see schemadefs.h)
targetRect
The target rectangle for the background

Return Value

A region representing the background area

See Also

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