ToolStrip.GetItemAt 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回位于指定位置的项。
重载
| 名称 | 说明 |
|---|---|
| GetItemAt(Int32, Int32) |
返回位于工作区的指定 x 坐标和 y 坐标处的 ToolStrip 项。 |
| GetItemAt(Point) |
返回位于工作区中指定点的 ToolStrip项。 |
GetItemAt(Int32, Int32)
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- 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)
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- ToolStrip.cs
- Source:
- 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
要 Point 在其中搜索 ToolStripItem的 。
返回
位于ToolStripItem指定位置,或者nullToolStripItem找不到。