ComponentTray.SetLocation(IComponent, Point) 方法

定义

将所指定组件的位置设置为指定的位置。

public:
 void SetLocation(System::ComponentModel::IComponent ^ receiver, System::Drawing::Point location);
public void SetLocation (System.ComponentModel.IComponent receiver, System.Drawing.Point location);
member this.SetLocation : System.ComponentModel.IComponent * System.Drawing.Point -> unit
Public Sub SetLocation (receiver As IComponent, location As Point)

参数

receiver
IComponent

要设置其位置的 IComponent

location
Point

Point,指示所指定组件的新位置。

适用于