System.Windows.Forms.VisualStyles.VisualStyleRenderer.HitTestBackground Method

Returns a hit test code indicating whether the point is contained in the background of the current visual style element and within the specified bounds.

Syntax

public HitTestCode HitTestBackground (System.Drawing.Graphics g, System.Drawing.Rectangle backgroundRectangle, System.Drawing.Region region, System.Drawing.Point pt, HitTestOptions options)

Parameters

g
The System.Drawing.Graphics this operation will use.
backgroundRectangle
A System.Drawing.Rectangle that contains the background of the current visual style element.
region
A System.Drawing.Region that specifies the bounds of the hit test area within the background.
pt
The System.Drawing.Point to test.
options
A bitwise combination of the System.Windows.Forms.VisualStyles.HitTestOptions values.

Returns

A System.Windows.Forms.VisualStyles.HitTestCode that describes where pt is located in the background of the current visual style element, if at all.

Remarks

Documentation for this section has not yet been entered.

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