ToolStrip.GetItemAt ToolStrip.GetItemAt ToolStrip.GetItemAt ToolStrip.GetItemAt Method

定義

傳回位於指定位置上的項目。Returns the item located at the specified location.

多載

GetItemAt(Int32, Int32) GetItemAt(Int32, Int32) GetItemAt(Int32, Int32) GetItemAt(Int32, Int32)

傳回位於 ToolStrip 工作區之指定 x 和 y 座標的項目。Returns the item located at the specified x- and y-coordinates of the ToolStrip client area.

GetItemAt(Point) GetItemAt(Point) GetItemAt(Point)

傳回在 ToolStrip 工作區中位於指定點的項目。Returns the item located at the specified point in the client area of the ToolStrip.

GetItemAt(Int32, Int32) GetItemAt(Int32, Int32) GetItemAt(Int32, Int32) GetItemAt(Int32, Int32)

傳回位於 ToolStrip 工作區之指定 x 和 y 座標的項目。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);
member this.GetItemAt : int * int -> System.Windows.Forms.ToolStripItem
Public Function GetItemAt (x As Integer, y As Integer) As ToolStripItem

參數

x
Int32 Int32 Int32 Int32

從工作區左邊緣算起的水平座標 (以像素為單位)。The horizontal coordinate, in pixels, from the left edge of the client area.

y
Int32 Int32 Int32 Int32

從工作區上邊緣算起的垂直座標 (以像素為單位)。The vertical coordinate, in pixels, from the top edge of the client area.

傳回

位於指定位置上的 ToolStripItem;如果找不到 ToolStripItem,則為 nullThe ToolStripItem located at the specified location, or null if the ToolStripItem is not found.

GetItemAt(Point) GetItemAt(Point) GetItemAt(Point)

傳回在 ToolStrip 工作區中位於指定點的項目。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);
member this.GetItemAt : System.Drawing.Point -> System.Windows.Forms.ToolStripItem

參數

point
Point Point Point Point

要於其上搜尋 PointToolStripItemThe Point at which to search for the ToolStripItem.

傳回

指定位置上的 ToolStripItem;如果找不到 ToolStripItem,則為 nullThe ToolStripItem at the specified location, or null if the ToolStripItem is not found.

另請參閱

適用於