AppWindow.MoveAndResize 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| MoveAndResize(RectInt32) |
將視窗移動到螢幕座標中指定的點,並設定為指定的大小。 |
| MoveAndResize(RectInt32, DisplayArea) |
將視窗移動到指定顯示區域內的指定點,並設定為指定的大小。 |
MoveAndResize(RectInt32)
將視窗移動到螢幕座標中指定的點,並設定為指定的大小。
public:
virtual void MoveAndResize(RectInt32 rect) = MoveAndResize;
/// [Windows.Foundation.Metadata.Overload("MoveAndResize")]
void MoveAndResize(RectInt32 const& rect);
[Windows.Foundation.Metadata.Overload("MoveAndResize")]
public void MoveAndResize(RectInt32 rect);
function moveAndResize(rect)
Public Sub MoveAndResize (rect As RectInt32)
參數
- rect
- RectInt32
一個長方形,用來指定視窗的位置和大小。
- 屬性
備註
螢幕座標 相對於螢幕左上角;左上角的座標為 (0,0)。
窗戶的大小與位置由結構 RectInt32 描述。
X 和 Y 欄位指定視窗左上角在螢幕座標中的位置。
高度與寬度欄位指定視窗大小。
當視窗位置或大小改變後,會發生 一個「變更 」事件。
另請參閱
適用於
MoveAndResize(RectInt32, DisplayArea)
將視窗移動到指定顯示區域內的指定點,並設定為指定的大小。
public:
virtual void MoveAndResize(RectInt32 rect, DisplayArea ^ displayarea) = MoveAndResize;
/// [Windows.Foundation.Metadata.Overload("MoveAndResizeRelativeToDisplayArea")]
void MoveAndResize(RectInt32 const& rect, DisplayArea const& displayarea);
[Windows.Foundation.Metadata.Overload("MoveAndResizeRelativeToDisplayArea")]
public void MoveAndResize(RectInt32 rect, DisplayArea displayarea);
function moveAndResize(rect, displayarea)
Public Sub MoveAndResize (rect As RectInt32, displayarea As DisplayArea)
參數
- rect
- RectInt32
一個長方形,用來指定視窗的位置和大小。
- displayarea
- DisplayArea
窗戶要放置的展示區。
- 屬性