Language

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 。

返品

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

例外

dc は nullです。

注釈

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

適用対象