共用方式為


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,指出指定元件的新位置。

適用於