Language

VisualStyleRenderer.HitTestBackground メソッド

定義

現在の visual スタイル要素の背景にポイントが含まれているかどうかを判断します。

オーバーロード

名前 説明
HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, HitTestOptions)

現在の visual スタイル要素の背景と指定した領域内にポイントが含まれているかどうかを示すヒット テスト コードを返します。

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

現在の visual スタイル要素の背景にポイントが含まれているかどうかを示すヒット テスト コードを返します。

HitTestBackground(Graphics, Rectangle, Region, Point, HitTestOptions)

現在の visual スタイル要素の背景と指定した境界内にポイントが含まれているかどうかを示すヒット テスト コードを返します。

HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, HitTestOptions)

ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs

現在の visual スタイル要素の背景と指定した領域内にポイントが含まれているかどうかを示すヒット テスト コードを返します。

public:
 System::Windows::Forms::VisualStyles::HitTestCode HitTestBackground(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle backgroundRectangle, IntPtr hRgn, System::Drawing::Point pt, System::Windows::Forms::VisualStyles::HitTestOptions options);
public System.Windows.Forms.VisualStyles.HitTestCode HitTestBackground(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle backgroundRectangle, IntPtr hRgn, System.Drawing.Point pt, System.Windows.Forms.VisualStyles.HitTestOptions options);
member this.HitTestBackground : System.Drawing.IDeviceContext * System.Drawing.Rectangle * nativeint * System.Drawing.Point * System.Windows.Forms.VisualStyles.HitTestOptions -> System.Windows.Forms.VisualStyles.HitTestCode
Public Function HitTestBackground (dc As IDeviceContext, backgroundRectangle As Rectangle, hRgn As IntPtr, pt As Point, options As HitTestOptions) As HitTestCode

パラメーター

dc
IDeviceContext

この操作で使用する IDeviceContext 。

backgroundRectangle
Rectangle

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

hRgn
IntPtr

nativeint

バックグラウンド内のヒット テスト領域の境界を指定する Region へのWindows ハンドル。

pt
Point

テストする Point 。

options
HitTestOptions

HitTestOptions値のビットごとの組み合わせ。

返品

現在の visual スタイル要素の背景にHitTestCodeがある場所を説明するpt。

例外

dc は nullです。

適用対象

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs

現在の visual スタイル要素の背景にポイントが含まれているかどうかを示すヒット テスト コードを返します。

public:
 System::Windows::Forms::VisualStyles::HitTestCode HitTestBackground(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle backgroundRectangle, System::Drawing::Point pt, System::Windows::Forms::VisualStyles::HitTestOptions options);
public System.Windows.Forms.VisualStyles.HitTestCode HitTestBackground(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle backgroundRectangle, System.Drawing.Point pt, System.Windows.Forms.VisualStyles.HitTestOptions options);
member this.HitTestBackground : System.Drawing.IDeviceContext * System.Drawing.Rectangle * System.Drawing.Point * System.Windows.Forms.VisualStyles.HitTestOptions -> System.Windows.Forms.VisualStyles.HitTestCode
Public Function HitTestBackground (dc As IDeviceContext, backgroundRectangle As Rectangle, pt As Point, options As HitTestOptions) As HitTestCode

パラメーター

dc
IDeviceContext

この操作で使用する IDeviceContext 。

backgroundRectangle
Rectangle

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

pt
Point

テストする Point 。

options
HitTestOptions

HitTestOptions値のビットごとの組み合わせ。

返品

現在の visual スタイル要素の背景にHitTestCodeがある場所を説明するpt。

例外

dc は nullです。

適用対象

HitTestBackground(Graphics, Rectangle, Region, Point, HitTestOptions)

ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs
ソース:
VisualStyleRenderer.cs

現在の visual スタイル要素の背景と指定した境界内にポイントが含まれているかどうかを示すヒット テスト コードを返します。

public:
 System::Windows::Forms::VisualStyles::HitTestCode HitTestBackground(System::Drawing::Graphics ^ g, System::Drawing::Rectangle backgroundRectangle, System::Drawing::Region ^ region, System::Drawing::Point pt, System::Windows::Forms::VisualStyles::HitTestOptions options);
public System.Windows.Forms.VisualStyles.HitTestCode HitTestBackground(System.Drawing.Graphics g, System.Drawing.Rectangle backgroundRectangle, System.Drawing.Region region, System.Drawing.Point pt, System.Windows.Forms.VisualStyles.HitTestOptions options);
member this.HitTestBackground : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Region * System.Drawing.Point * System.Windows.Forms.VisualStyles.HitTestOptions -> System.Windows.Forms.VisualStyles.HitTestCode
Public Function HitTestBackground (g As Graphics, backgroundRectangle As Rectangle, region As Region, pt As Point, options As HitTestOptions) As HitTestCode

パラメーター

g
Graphics

この操作で使用する Graphics 。

backgroundRectangle
Rectangle

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

region
Region

バックグラウンド内のヒット テスト領域の境界を指定する Region 。

pt
Point

テストする Point 。

options
HitTestOptions

HitTestOptions値のビットごとの組み合わせ。

返品

現在の visual スタイル要素の背景にHitTestCodeがある場所を示すpt (すべて)。

例外

g は nullです。

適用対象