ComponentTray.GetTrayLocation(IComponent) 方法

定义

获取扩展程序属性的值 Location

public:
 System::Drawing::Point GetTrayLocation(System::ComponentModel::IComponent ^ receiver);
[System.ComponentModel.Browsable(false)]
public System.Drawing.Point GetTrayLocation(System.ComponentModel.IComponent receiver);
[<System.ComponentModel.Browsable(false)>]
member this.GetTrayLocation : System.ComponentModel.IComponent -> System.Drawing.Point
Public Function GetTrayLocation (receiver As IComponent) As Point

参数

receiver
IComponent

IComponent接收位置扩展程序属性的地址。

返回

一个 Point 表示位置的 receiver

属性

注解

扩展 Location 程序属性提供给所有非视觉组件。 返回的值将考虑值 AutoScrollPosition。 如果没有 receiver 组件视图,则返回的值为空 Point

适用于

另请参阅