ComponentTray.GetLocation(IComponent) メソッド

定義

コンポーネント トレイの左上隅を基準にして、指定したコンポーネントの位置を取得します。

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

パラメーター

receiver
IComponent

場所を取得する IComponent

返品

指定したコンポーネントの座標を示す Point 。指定したコンポーネントがコンポーネント トレイに見つからなかった場合は空の Point 。 空のPointには、trueと等しいIsEmptyプロパティがあり、通常は 0 に等しいXプロパティとYプロパティがあります。

属性

注釈

GetLocation は、コンポーネント トレイ内の各コンポーネントに追加される位置エクステンダー プロパティのアクセサー メソッドです。

適用対象