語言

ToolStrip.GetItemAt 方法

定義

返回指定位置的物品。

多載

名稱 Description
GetItemAt(Int32, Int32)

回傳位於客戶端區域指定 x 與 y 座標 ToolStrip 的項目。

GetItemAt(Point)

回傳位於客戶端區域 ToolStrip指定點的項目。

GetItemAt(Int32, Int32)

來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs

回傳位於客戶端區域指定 x 與 y 座標 ToolStrip 的項目。

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

參數

x
Int32

從客戶端區域左邊起的水平座標,以像素為單位。

y
Int32

垂直座標,以像素為單位,從客戶端區域的頂端開始。

傳回

該系統ToolStripItem位於指定位置,或null若找不到。ToolStripItem

適用於

GetItemAt(Point)

來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs
來源:
ToolStrip.cs

回傳位於客戶端區域 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

參數

point
Point

在 搜尋 PointToolStripItem的 。

傳回

在指定位置, ToolStripItem 或者 null 如果找不到, ToolStripItem 也只能在指定位置。

另請參閱

適用於