VisualStyleRenderer.HitTestBackground Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Determina se um ponto está contido no fundo do elemento visual atual.
Sobrecargas
| Name | Description |
|---|---|
| HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, HitTestOptions) |
Devolve um código de teste de acerto indicando se o ponto está contido no fundo do elemento de estilo visual atual e dentro da região especificada. |
| HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions) |
Devolve um código de teste de acerto indicando se um ponto está contido no fundo do elemento de estilo visual atual. |
| HitTestBackground(Graphics, Rectangle, Region, Point, HitTestOptions) |
Devolve um código de teste de acerto indicando se o ponto está contido no fundo do elemento de estilo visual atual e dentro dos limites especificados. |
HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, HitTestOptions)
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
Devolve um código de teste de acerto indicando se o ponto está contido no 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
Esta IDeviceContext operação irá usar.
- hRgn
-
IntPtr
nativeint
Uma Windows handle para um Region que especifica os limites da área de teste de acerto em segundo plano.
- options
- HitTestOptions
Uma combinação bit a bit dos HitTestOptions valores.
Devoluções
A HitTestCode que descreve onde pt se localiza no fundo do elemento visual atual.
Exceções
dc é null.
Aplica-se a
HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
Devolve um código de teste de acerto indicando se um ponto está contido no 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
Esta IDeviceContext operação irá usar.
- options
- HitTestOptions
Uma combinação bit a bit dos HitTestOptions valores.
Devoluções
A HitTestCode que descreve onde pt se localiza no fundo do elemento visual atual.
Exceções
dc é null.
Aplica-se a
HitTestBackground(Graphics, Rectangle, Region, Point, HitTestOptions)
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
- Origem:
- VisualStyleRenderer.cs
Devolve um código de teste de acerto indicando se o ponto está contido no 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
- options
- HitTestOptions
Uma combinação bit a bit dos HitTestOptions valores.
Devoluções
A HitTestCode que descreve onde pt está localizado no fundo do elemento visual atual, se é que existe.
Exceções
g é null.