System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetBackgroundRegion Method

Returns the region for the background of the current visual style element.

Syntax

[System.Security.SuppressUnmanagedCodeSecurity]
public System.Drawing.Region GetBackgroundRegion (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds)

Parameters

dc
The System.Drawing.IDeviceContext this operation will use.
bounds
A System.Drawing.Rectangle that contains the entire background area of the current visual style element.

Returns

The System.Drawing.Region that contains the background of the current visual style element.

Remarks

This method can be used to get the System.Drawing.Region of a visual style element that has partially transparent or alpha-blended parts in its background.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0