ToolStrip.GetItemAt 方法

定義

傳回位於指定位置上的項目。

多載

GetItemAt(Int32, Int32)

傳回位於 ToolStrip 工作區之指定 X 和 Y 座標的項目。

GetItemAt(Point)

傳回位於 ToolStrip 工作區中指定點的項目。

GetItemAt(Int32, Int32)

傳回位於 ToolStrip 工作區之指定 X 和 Y 座標的項目。

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;如果找不到 ToolStripItem,則為 null

適用於

GetItemAt(Point)

傳回位於 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

要於其上搜尋 ToolStripItemPoint

傳回

指定位置上的 ToolStripItem;如果找不到 ToolStripItem,則為 null

另請參閱

適用於