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);
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

指定した位置にある ToolStripItemToolStripItem が見つからない場合は null

適用対象

GetItemAt(Point)

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
Public Function GetItemAt (point As Point) As ToolStripItem

パラメーター

point
Point

ToolStripItem を検索する位置の Point

戻り値

ToolStripItem

指定した位置の ToolStripItemnull が見つからない場合は ToolStripItem

こちらもご覧ください

適用対象