Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetItemAt Method (Int32, Int32)
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Function GetItemAt ( _
	x As Integer, _
	y As Integer _
) As ToolStripItem

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 Nothing if the ToolStripItem is not found.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft