Share via


VisualStyleRenderer.GetBackgroundContentRectangle メソッド

定義

現在の visual スタイル要素の背景の内容表示領域を返します。

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

パラメーター

dc
IDeviceContext

この操作で使用される IDeviceContext

bounds
Rectangle

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

戻り値

Rectangle

現在の visual スタイル要素の背景の内容表示領域を含む Rectangle

例外

dcnullです。

注釈

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

適用対象