VisualStyleRenderer.GetBackgroundContentRectangle(IDeviceContext, Rectangle) VisualStyleRenderer.GetBackgroundContentRectangle(IDeviceContext, Rectangle) VisualStyleRenderer.GetBackgroundContentRectangle(IDeviceContext, Rectangle) VisualStyleRenderer.GetBackgroundContentRectangle(IDeviceContext, Rectangle) Method

Definition

Returns the content area for the background of the current visual style element.

public:
 System::Drawing::Rectangle GetBackgroundContentRectangle(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds);
public System.Drawing.Rectangle GetBackgroundContentRectangle (System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds);
member this.GetBackgroundContentRectangle : System.Drawing.IDeviceContext * System.Drawing.Rectangle -> System.Drawing.Rectangle
Public Function GetBackgroundContentRectangle (dc As IDeviceContext, bounds As Rectangle) As Rectangle

Parameters

bounds
Rectangle Rectangle Rectangle Rectangle

A Rectangle that contains the entire background area of the current visual style element.

Returns

A Rectangle that contains the content area for the background of the current visual style element.

Exceptions

Remarks

A visual style can define a content area within each background image. This is the area in which content such as text and icons can be placed without overwriting background borders. This method uses the given background area to calculate the content area for the current visual style element.

Applies to