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

例外

dcnullです。

注釈

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

適用対象