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

适用于

另请参阅