ToolStrip.SetItemLocation(ToolStripItem, Point) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 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 客户端坐标(以像素为单位)。
例外
参数的值 item 为 null.
当前ToolStrip不是参数所引用ToolStripItem的item所有者。