VisualStyleRenderer.HitTestBackground Yöntem

Tanım

Bir noktanın geçerli görsel stili öğesinin arka planında bulunup bulunmadığını belirler.

Aşırı Yüklemeler

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

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen bölgede yer alıp almadığını belirten bir isabet testi kodu döndürür.

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Bir noktanın geçerli görsel stili öğesinin arka planında bulunup bulunmadığını belirten bir isabet testi kodu döndürür.

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

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen sınırlar içinde yer alıp almadığını belirten bir isabet testi kodu döndürür.

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

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen bölgede yer alıp almadığını belirten bir isabet testi kodu döndürür.

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

Parametreler

dc
IDeviceContext

Bu IDeviceContext işlem kullanacaktır.

backgroundRectangle
Rectangle

Rectangle Geçerli görsel stili öğesinin arka planını içeren.

hRgn
IntPtr

nativeint

Arka plandaki isabet testi alanının sınırlarını belirten bir Region Windows tutamacı.

pt
Point

Test Point etmek için.

options
HitTestOptions

Değerlerin bit düzeyinde birleşimi HitTestOptions .

Döndürülenler

HitTestCode

HitTestCode Geçerli görsel stili öğesinin arka planında nerede pt bulunduğunu açıklayan bir.

Özel durumlar

dc, null değeridir.

Şunlara uygulanır

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Bir noktanın geçerli görsel stili öğesinin arka planında bulunup bulunmadığını belirten bir isabet testi kodu döndürür.

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

Parametreler

dc
IDeviceContext

Bu IDeviceContext işlem kullanacaktır.

backgroundRectangle
Rectangle

Rectangle Geçerli görsel stili öğesinin arka planını içeren.

pt
Point

Test Point etmek için.

options
HitTestOptions

Değerlerin bit düzeyinde birleşimi HitTestOptions .

Döndürülenler

HitTestCode

HitTestCode Geçerli görsel stili öğesinin arka planında nerede pt bulunduğunu açıklayan bir.

Özel durumlar

dc, null değeridir.

Şunlara uygulanır

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

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen sınırlar içinde yer alıp almadığını belirten bir isabet testi kodu döndürür.

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

Parametreler

g
Graphics

Bu Graphics işlem kullanacaktır.

backgroundRectangle
Rectangle

Rectangle Geçerli görsel stili öğesinin arka planını içeren.

region
Region

Region Arka plandaki isabet testi alanının sınırlarını belirten bir.

pt
Point

Test Point etmek için.

options
HitTestOptions

Değerlerin bit düzeyinde birleşimi HitTestOptions .

Döndürülenler

HitTestCode

HitTestCode Varsa, geçerli görsel stili öğesinin arka planında nerede pt bulunduğunu açıklayan bir.

Özel durumlar

g, null değeridir.

Şunlara uygulanır