Share via


AppWindow.MoveAndResize Method

Definition

Overloads

MoveAndResize(RectInt32, DisplayArea)

Moves the window to the specified point within the given display area and sets it to the specified size.

MoveAndResize(RectInt32)

Moves the window to the specified point in screen coordinates and sets it to the specified size.

MoveAndResize(RectInt32, DisplayArea)

Moves the window to the specified point within the given display area and sets it to the specified size.

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)

Parameters

rect
RectInt32

A rectangle that specifies the position and size of the window.

displayarea
DisplayArea

The display area where the window is to be positioned.

Attributes

See also

Applies to

MoveAndResize(RectInt32)

Moves the window to the specified point in screen coordinates and sets it to the specified size.

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)

Parameters

rect
RectInt32

A rectangle that specifies the position and size of the window.

Attributes

Remarks

Screen coordinates are relative to the upper-left corner of the screen; the coordinates of the upper-left corner are (0,0).

The size and position of the window is described by a RectInt32 structure. The X and Y fields specify the position of the upper-left corner of the window in screen coordinates. The Height and Width fields specify the size of the window.

After the window position or size has changed a Changed event will occur.

See also

Applies to