ToolStrip.GetItemAt Method (Int32, Int32)

 

Returns the item located at the specified x- and y-coordinates of the ToolStrip client area.

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

public ToolStripItem GetItemAt(
	int x,
	int y
)

Parameters

x
Type: System.Int32

The horizontal coordinate, in pixels, from the left edge of the client area.

y
Type: System.Int32

The vertical coordinate, in pixels, from the top edge of the client area.

Return Value

Type: System.Windows.Forms.ToolStripItem

The ToolStripItem located at the specified location, or null if the ToolStripItem is not found.

.NET Framework
Available since 2.0
Return to top
Show: