VisualStyleRenderer.HitTestBackground Metodo

Definizione

Determina se un punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente.

Overload

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

Restituisce un codice di hit test che indica se il punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente e all'interno dell'area specificata.

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Restituisce un codice di hit test che indica se un punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente.

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

Restituisce un codice di hit test che indica se il punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente e all'interno dei limiti specificati.

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

Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs

Restituisce un codice di hit test che indica se il punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente e all'interno dell'area specificata.

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

Parametri

dc
IDeviceContext

Questa IDeviceContext operazione verrà utilizzata.

backgroundRectangle
Rectangle

Oggetto Rectangle contenente lo sfondo dell'elemento dello stile di visualizzazione corrente.

hRgn
IntPtr

nativeint

Handle Windows a un Region che specifica i limiti dell'area di hit test all'interno dello sfondo.

pt
Point

Oggetto Point da testare.

options
HitTestOptions

Combinazione bit per bit dei HitTestOptions valori.

Valori restituiti

Oggetto HitTestCode che descrive dove pt si trova in background dell'elemento dello stile di visualizzazione corrente.

Eccezioni

dc è null.

Si applica a

HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions)

Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs

Restituisce un codice di hit test che indica se un punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente.

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

Parametri

dc
IDeviceContext

Questa IDeviceContext operazione verrà utilizzata.

backgroundRectangle
Rectangle

Oggetto Rectangle contenente lo sfondo dell'elemento dello stile di visualizzazione corrente.

pt
Point

Oggetto Point da testare.

options
HitTestOptions

Combinazione bit per bit dei HitTestOptions valori.

Valori restituiti

Oggetto HitTestCode che descrive dove pt si trova in background dell'elemento dello stile di visualizzazione corrente.

Eccezioni

dc è null.

Si applica a

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

Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs
Origine:
VisualStyleRenderer.cs

Restituisce un codice di hit test che indica se il punto è contenuto nello sfondo dell'elemento dello stile di visualizzazione corrente e all'interno dei limiti specificati.

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

Parametri

g
Graphics

Questa Graphics operazione verrà utilizzata.

backgroundRectangle
Rectangle

Oggetto Rectangle contenente lo sfondo dell'elemento dello stile di visualizzazione corrente.

region
Region

Oggetto Region che specifica i limiti dell'area di hit test all'interno dello sfondo.

pt
Point

Oggetto Point da testare.

options
HitTestOptions

Combinazione bit per bit dei HitTestOptions valori.

Valori restituiti

Oggetto HitTestCode che descrive dove pt si trova in background dell'elemento dello stile di visualizzazione corrente, se affatto.

Eccezioni

Si applica a