VisualStyleRenderer.HitTestBackground Método

Definición

Determina si un punto se encuentra en el fondo del elemento de estilo visual actual.

Sobrecargas

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

Devuelve un código de prueba de comprobación indicando si el punto se encuentra en el fondo del elemento de estilo visual actual y dentro de la región especificada.

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Devuelve un código de prueba de comprobación que indica si un punto está incluido en el fondo del elemento de estilo visual actual.

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

Devuelve un código de prueba de comprobación indicando si el punto se encuentra en el fondo del elemento de estilo visual actual y dentro de los límites especificados.

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

Devuelve un código de prueba de comprobación indicando si el punto se encuentra en el fondo del elemento de estilo visual actual y dentro de la región especificada.

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

Parámetros

dc
IDeviceContext

Objeto IDeviceContext que va a utilizar esta operación.

backgroundRectangle
Rectangle

Rectangle que contiene el fondo del elemento de estilo visual actual.

hRgn
IntPtr

nativeint

Un identificador de Windows para un Region que especifica los límites del área de prueba de comprobación dentro del fondo.

pt
Point

Point que se va a probar.

options
HitTestOptions

Combinación bit a bit de los valores de HitTestOptions.

Devoluciones

HitTestCode

HitTestCode que describe donde se encuentra pt en el fondo del elemento de estilo visual actual.

Excepciones

dc es null.

Se aplica a

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Devuelve un código de prueba de comprobación que indica si un punto está incluido en el fondo del elemento de estilo visual actual.

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

Parámetros

dc
IDeviceContext

Objeto IDeviceContext que va a utilizar esta operación.

backgroundRectangle
Rectangle

Rectangle que contiene el fondo del elemento de estilo visual actual.

pt
Point

Point que se va a probar.

options
HitTestOptions

Combinación bit a bit de los valores de HitTestOptions.

Devoluciones

HitTestCode

HitTestCode que describe donde se encuentra pt en el fondo del elemento de estilo visual actual.

Excepciones

dc es null.

Se aplica a

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

Devuelve un código de prueba de comprobación indicando si el punto se encuentra en el fondo del elemento de estilo visual actual y dentro de los límites especificados.

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

Parámetros

g
Graphics

Objeto Graphics que va a utilizar esta operación.

backgroundRectangle
Rectangle

Rectangle que contiene el fondo del elemento de estilo visual actual.

region
Region

Region que especifica los límites del área de prueba de comprobación dentro del fondo.

pt
Point

Point que se va a probar.

options
HitTestOptions

Combinación bit a bit de los valores de HitTestOptions.

Devoluciones

HitTestCode

HitTestCode que describe donde se encuentra pt en el fondo del elemento de estilo visual actual, si se encuentra allí.

Excepciones

Se aplica a