ToolStrip.SetItemLocation(ToolStripItem, Point) 方法

定义

将 a ToolStripItem 定位到某个特定位置。ToolStrip

protected public:
 void SetItemLocation(System::Windows::Forms::ToolStripItem ^ item, System::Drawing::Point location);
protected internal void SetItemLocation(System.Windows.Forms.ToolStripItem item, System.Drawing.Point location);
member this.SetItemLocation : System.Windows.Forms.ToolStripItem * System.Drawing.Point -> unit
Protected Friend Sub SetItemLocation (item As ToolStripItem, location As Point)

参数

item
ToolStripItem

定位 ToolStripItem 点。

location
Point

一个 Point 表示位置的 ToolStripItem x 和 y 客户端坐标(以像素为单位)。

例外

参数的值 itemnull.

当前ToolStrip不是参数所引用ToolStripItemitem所有者。

适用于