ComponentTray.GetLocation(IComponent) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コンポーネント トレイの左上隅を基準にして、指定したコンポーネントの位置を取得します。
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 は、コンポーネント トレイ内の各コンポーネントに追加される位置エクステンダー プロパティのアクセサー メソッドです。