ToolStrip.GetItemAt Method

Definition

Returns the item located at the specified location.

Overloads

GetItemAt(Int32, Int32)

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

GetItemAt(Point)

Returns the item located at the specified point in the client area of the ToolStrip.

GetItemAt(Int32, Int32)

Source:
ToolStrip.cs
Source:
ToolStrip.cs
Source:
ToolStrip.cs

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

public:
 System::Windows::Forms::ToolStripItem ^ GetItemAt(int x, int y);
public System.Windows.Forms.ToolStripItem GetItemAt (int x, int y);
public System.Windows.Forms.ToolStripItem? GetItemAt (int x, int y);
member this.GetItemAt : int * int -> System.Windows.Forms.ToolStripItem
Public Function GetItemAt (x As Integer, y As Integer) As ToolStripItem

Parameters

x
Int32

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

y
Int32

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

Returns

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

Applies to

GetItemAt(Point)

Source:
ToolStrip.cs
Source:
ToolStrip.cs
Source:
ToolStrip.cs

Returns the item located at the specified point in the client area of the ToolStrip.

public:
 System::Windows::Forms::ToolStripItem ^ GetItemAt(System::Drawing::Point point);
public System.Windows.Forms.ToolStripItem GetItemAt (System.Drawing.Point point);
public System.Windows.Forms.ToolStripItem? GetItemAt (System.Drawing.Point point);
member this.GetItemAt : System.Drawing.Point -> System.Windows.Forms.ToolStripItem
Public Function GetItemAt (point As Point) As ToolStripItem

Parameters

point
Point

The Point at which to search for the ToolStripItem.

Returns

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

See also

Applies to