ToolStrip::ToolStripAccessibleObject::HitTest Method (Int32, Int32)

 

Retrieves the child object at the specified screen coordinates.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
virtual AccessibleObject^ HitTest(
	int x,
	int y
) override

Parameters

x
Type: System::Int32

The horizontal screen coordinate.

y
Type: System::Int32

The vertical screen coordinate.

Return Value

Type: System.Windows.Forms::AccessibleObject^

An AccessibleObject that represents the child object at the given screen coordinates. This method returns the calling object if the object itself is at the location specified. Returns null if no object is at the tested location.

.NET Framework
Available since 2.0
Return to top
Show: