VisualStyleRenderer.HitTestBackground Metoda

Definice

Určuje, zda je bod obsažen v pozadí aktuálního prvku vizuálního stylu.

Přetížení

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

Vrátí testovací kód přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu a v rámci zadané oblasti.

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Vrátí testovací kód přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu.

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

Vrátí kód testu přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu a v rámci zadaných mezí.

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

Vrátí testovací kód přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu a v rámci zadané oblasti.

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

Parametry

dc
IDeviceContext

Tato IDeviceContext operace použije.

backgroundRectangle
Rectangle

A Rectangle , který obsahuje pozadí aktuálního prvku vizuálního stylu.

hRgn
IntPtr

nativeint

Popisovač systému Windows, Region který určuje hranice oblasti testu přístupů v pozadí.

pt
Point

Test Point .

options
HitTestOptions

Bitové kombinace HitTestOptions hodnot.

Návraty

A HitTestCode , který popisuje, kde pt se nachází na pozadí aktuálního elementu vizuálního stylu.

Výjimky

dc je null.

Platí pro

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Vrátí testovací kód přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu.

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

Parametry

dc
IDeviceContext

Tato IDeviceContext operace použije.

backgroundRectangle
Rectangle

A Rectangle , který obsahuje pozadí aktuálního prvku vizuálního stylu.

pt
Point

Test Point .

options
HitTestOptions

Bitové kombinace HitTestOptions hodnot.

Návraty

A HitTestCode , který popisuje, kde pt se nachází na pozadí aktuálního elementu vizuálního stylu.

Výjimky

dc je null.

Platí pro

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

Vrátí kód testu přístupů označující, zda je bod obsažen na pozadí aktuálního prvku vizuálního stylu a v rámci zadaných mezí.

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

Parametry

g
Graphics

Tato Graphics operace použije.

backgroundRectangle
Rectangle

A Rectangle , který obsahuje pozadí aktuálního prvku vizuálního stylu.

region
Region

A Region , který určuje hranice oblasti testu zásahu v pozadí.

pt
Point

Test Point .

options
HitTestOptions

Bitové kombinace HitTestOptions hodnot.

Návraty

A HitTestCode , který popisuje, kde pt se nachází na pozadí aktuálního prvku vizuálního stylu, pokud vůbec.

Výjimky

Platí pro