Form.Location プロパティ

定義

画面座標における Form の左上隅を表す Point を取得および設定します。

public:
 property System::Drawing::Point Location { System::Drawing::Point get(); void set(System::Drawing::Point value); };
[System.ComponentModel.SettingsBindable(true)]
public System.Drawing.Point Location { get; set; }
[<System.ComponentModel.SettingsBindable(true)>]
member this.Location : System.Drawing.Point with get, set
Public Property Location As Point

プロパティ値

Point

画面座標における Point の左上隅を表す Form

属性

注釈

Point は構造体であり、値型であることを意味します。 でプロパティに Pointアクセスすると、プロパティのコピーが返されます。 したがって、プロパティから返されるプロパティまたはYプロパティをPointLocation変更Xすることは、の 、RightTopまたはBottomプロパティ値にはForm影響Leftしません。 これらのプロパティを調整するには、各プロパティ値を個別に設定するか、新しいPointプロパティをLocation設定します。

このプロパティはLocation、基底クラスのプロパティをControlLocation取得または設定し、プロパティtrueBindable .

適用対象

こちらもご覧ください