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)

現在の 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 スタイル要素の背景内での pt の位置を示す HitTestCode

例外

dcnullです。

適用対象

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

現在の 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 スタイル要素の背景内での pt の位置を示す HitTestCode

例外

dcnullです。

適用対象

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

現在の 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 スタイル要素の背景内での pt の位置を示す、HitTestCode

例外

gnullです。

適用対象