This document is archived and information here might be outdated.  Recommended version.


IWindowPosition Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

IWindowPosition Interface

Provides access to members that query or modify a window's position, size and state.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Read/write property Height The height of the window.
Read/write property Left The distance between the internal left edge of the window and screen.
Method Move Moves and optionally resizes the windows in a single function.
Read/write property State The state of the window.
Read/write property Top The distance between the internal top edge of the window and screen.
Read/write property Width The width of the window.

CoClasses that implement IWindowPosition

CoClasses and Classes Description
Application (esriArcCatalog) Esri ArcCatalog Application.
Application (esriArcGlobe) Esri ArcGlobe Application.
Application (esriArcMap) Esri ArcMap Application
Application (esriArcScene) The 3D Modeling Application.
CommandBar CommandBar object.
DockableWindow DockableWindow object.
ModelessFrame Object that implements a ModelessFrame.

Remarks

The IWindowPosition interface has methods to move and resize a window. Any window object can implement this interface. All the ArcGIS application windows implement this interface.

[C#]

You can do a type cast from the application object to IWindowPosition.

IWindowPosition windowPos=app as IWindowPosition
[Visual Basic .NET]

You can do a type cast from the application object to IWindowPosition.

  Dim windowPos As IWindowPosition
  windowPos=CType(app, IWindowPosition)

.NET Snippets

Move Application Window to Center | Move Dockable Window | Resize Dockable Window | Minimize Application Window | Report Dockable Window Position