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


IWindowPosition Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IW > IWindowPosition Interface
ArcGIS Developer Help

IWindowPosition Interface

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

Product Availability

Available with ArcGIS Desktop.

Members

Name 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.

Classes that implement IWindowPosition

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)