ToolStrip.GetItemAt Method (Int32, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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


Type: System.Int32

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

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