Language

VisualStyleRenderer.GetBackgroundExtent(IDeviceContext, Rectangle) メソッド

定義

現在の visual スタイル要素の背景領域全体を返します。

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

パラメーター

dc
IDeviceContext

この操作で使用する IDeviceContext 。

contentBounds
Rectangle

現在の visual スタイル要素のコンテンツ領域を含む Rectangle 。

返品

現在の visual スタイル要素の背景領域全体を含む Rectangle 。

例外

dc は nullです。

注釈

ビジュアル スタイルでは、各背景画像内のコンテンツ領域を定義できます。 これは、背景の境界線を上書きせずにテキストやアイコンなどのコンテンツを配置できる領域です。 このメソッドは、指定されたコンテンツ領域を使用して、現在の visual スタイル要素の背景領域全体を計算します。

適用対象