VisualStyleRenderer.HitTestBackground Yöntem

Tanım

Bir noktanın geçerli görsel stili öğesinin arka planında yer alıp almayacağını belirler.

Aşırı Yüklemeler

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

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen bölge içinde yer alıp almadığını gösteren 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 yer alıp almadığını gösteren 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ı gösteren bir isabet testi kodu döndürür.

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

Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen bölge içinde yer alıp almadığını gösteren 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 kullanılır.

backgroundRectangle
Rectangle

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

hRgn
IntPtr

nativeint

Arka plan içindeki 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 Geçerli görsel stili öğesinin arka planında nerede pt bulunduğunu açıklayan bir.

Özel durumlar

dc, null'e eşittir.

Şunlara uygulanır

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs

Bir noktanın geçerli görsel stili öğesinin arka planında yer alıp almadığını gösteren 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 kullanılır.

backgroundRectangle
Rectangle

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

pt
Point

Test Point etmek için.

options
HitTestOptions

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

Döndürülenler

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

Özel durumlar

dc, null'e eşittir.

Şunlara uygulanır

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

Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs
Kaynak:
VisualStyleRenderer.cs

Noktanın geçerli görsel stili öğesinin arka planında ve belirtilen sınırlar içinde yer alıp almadığını gösteren 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 kullanılır.

backgroundRectangle
Rectangle

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

region
Region

Region Arka plan içindeki 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 Varsa, geçerli görsel stili öğesinin arka planında nerede pt bulunduğunu açıklayan bir.

Özel durumlar

g, null'e eşittir.

Şunlara uygulanır