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

A Point 表示該元件的新位置。

適用於