ComponentTray.GetTrayLocation(IComponent) 方法

定義

取得 Location 擴充項 (Extender) 屬性的值。

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

Point,表示 receiver 的位置。

屬性

備註

Location擴充器屬性會提供給所有非視覺元件。 傳回的值會考慮 的值 AutoScrollPosition 。 如果沒有 receiver 元件檢視,則傳回的值是空 Point 的 。

適用於

另請參閱