ToolStrip.GetItemAtとは? わかりやすく解説

ToolStrip.GetItemAt メソッド (Point)

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

ToolStrip のクライアント領域内の指定した位置にある項目を返します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Function GetItemAt ( _
    point As Point _
) As ToolStripItem
Dim instance As ToolStrip
Dim point As Point
Dim returnValue As ToolStripItem

returnValue = instance.GetItemAt(point)
public ToolStripItem GetItemAt (
    Point point
)
public:
ToolStripItem^ GetItemAt (
    Point point
)
public ToolStripItem GetItemAt (
    Point point
)
public function GetItemAt (
    point : Point
) : ToolStripItem

パラメータ

point

ToolStripItem を検索する位置にある System.Drawing.Point。

戻り値
指定した位置の ToolStripItem。ToolStripItem が見つからない場合は null 参照 (Visual Basic では Nothing)。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ToolStrip.GetItemAt メソッド (Int32, Int32)

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

ToolStrip クライアント領域の指定した x 座標と y 座標にある項目を返します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Function GetItemAt ( _
    x As Integer, _
    y As Integer _
) As ToolStripItem
Dim instance As ToolStrip
Dim x As Integer
Dim y As Integer
Dim returnValue As ToolStripItem

returnValue = instance.GetItemAt(x, y)
public ToolStripItem GetItemAt (
    int x,
    int y
)
public:
ToolStripItem^ GetItemAt (
    int x, 
    int y
)
public ToolStripItem GetItemAt (
    int x, 
    int y
)
public function GetItemAt (
    x : int, 
    y : int
) : ToolStripItem

パラメータ

x

クライアント領域の左端からの水平方向座標 (ピクセル単位)。

y

クライアント領域の上端からの垂直方向座標 (ピクセル単位)。

戻り値
指定した位置にある ToolStripItem。ToolStripItem が見つからない場合は null 参照 (Visual Basic では Nothing)。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ToolStrip.GetItemAt メソッド

指定した位置にある項目を返します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
ToolStrip.GetItemAt (Point) ToolStrip のクライアント領域内の指定した位置にある項目を返します。
ToolStrip.GetItemAt (Int32, Int32) ToolStrip クライアント領域の指定した x 座標と y 座標にある項目を返します。
参照参照

関連項目

ToolStrip クラス
ToolStrip メンバ
System.Windows.Forms 名前空間

その他の技術情報

Windows フォームの座標



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ToolStrip.GetItemAt」の関連用語

ToolStrip.GetItemAtのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ToolStrip.GetItemAtのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS