共用方式為


ComponentTray.SetTrayLocation(IComponent, Point) 方法

定義

設定 Location 擴充項屬性的值。

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

參數

receiver
IComponent

接收位置擴充項屬性的 IComponent

location
Point

Point,表示 receiver 的位置。

備註

Location擴充器屬性會提供給所有非視覺元件。 實際值會考慮 的值 AutoScrollPosition

適用於

另請參閱