VisualStyleRenderer.HitTestBackground Método

Definição

Determina se um ponto está contido na tela de fundo do elemento de estilo visual atual.

Sobrecargas

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

Retorna um código de teste de clique que indica se o ponto está contido na tela de fundo do elemento de estilo visual atual e dentro da região especificada.

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Retorna um código de teste de clique que indica se um ponto está contido na tela de fundo do elemento de estilo visual atual.

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

Retorna um código de teste de clique que indica se o ponto está contido na tela de fundo do elemento de estilo visual atual e dentro dos limites especificados.

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

Retorna um código de teste de clique que indica se o ponto está contido na tela de fundo do elemento de estilo visual atual e dentro da região 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

O IDeviceContext que essa operação usará.

backgroundRectangle
Rectangle

Um Rectangle que contém a tela de fundo do elemento de estilo visual atual.

hRgn
IntPtr

nativeint

Um identificador do Windows para um Region que especifica os limites da área de teste de clique na tela de fundo.

pt
Point

O Point a ser testado.

options
HitTestOptions

Uma combinação bit a bit dos valores HitTestOptions.

Retornos

HitTestCode

Um HitTestCode que descreve o local em que pt está localizado na tela de fundo do elemento de estilo visual atual.

Exceções

dc é null.

Aplica-se a

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Retorna um código de teste de clique que indica se um ponto está contido na tela de fundo do elemento de estilo visual atual.

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

O IDeviceContext que essa operação usará.

backgroundRectangle
Rectangle

Um Rectangle que contém a tela de fundo do elemento de estilo visual atual.

pt
Point

O Point a ser testado.

options
HitTestOptions

Uma combinação bit a bit dos valores HitTestOptions.

Retornos

HitTestCode

Um HitTestCode que descreve o local em que pt está localizado na tela de fundo do elemento de estilo visual atual.

Exceções

dc é null.

Aplica-se a

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

Retorna um código de teste de clique que indica se o ponto está contido na tela de fundo do elemento de estilo visual atual e dentro dos limites 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

O Graphics que essa operação usará.

backgroundRectangle
Rectangle

Um Rectangle que contém a tela de fundo do elemento de estilo visual atual.

region
Region

Um Region que especifica os limites da área de teste de clique na tela de fundo.

pt
Point

O Point a ser testado.

options
HitTestOptions

Uma combinação bit a bit dos valores HitTestOptions.

Retornos

HitTestCode

Um HitTestCode que descreve o local em que pt está localizado na tela de fundo do elemento de estilo visual atual, se estiver.

Exceções

Aplica-se a