Interface IWindow
A window or dialog box containing objects in a SAP GUI for Windows application.
public interface IWindow : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject
- Inherited Members
- Extension Methods
Properties
IsMinimized
Indicates whether the window is minimized.
bool IsMinimized { get; }
Property Value
Program
The name of the SAP source program that is executing.
string Program { get; }
Property Value
ScreenNumber
The number of the displayed screen.
uint ScreenNumber { get; }
Property Value
Text
The text associated with the object.
string Text { get; }
Property Value
Transaction
The transaction the user is executing.
string Transaction { get; }
Property Value
WorkingPaneSize
The size of the working pane in character metric. The working pane is the area between the toolbar and the status bar.
Size WorkingPaneSize { get; }
Property Value
Methods
Activate()
Activates this window.
void Activate()
Close()
Closes this window or dialog box.
void Close()
Maximize()
Maximizes this window or dialog box.
void Maximize()
Resize(Size)
Resizes this window so that the available working area has the specified width and height in character metric. Use WorkingPaneSize to read the current size in character metric.
void Resize(Size size)
Parameters
sizeSizeThe target size in character metric units.
Resize(int, int)
Resizes this window so that the available working area has the specified width and height in character metric. Use WorkingPaneSize to read the current size in character metric.
void Resize(int width, int height)
Parameters
widthintThe target width in character metric units.
heightintThe target height in character metric units.
Restore()
Restores a maximized window or dialog box to its original size.
void Restore()
Scroll(ScrollOrientation, int)
Sets the position of the the specified scroll bar.
void Scroll(ScrollOrientation orientation, int toPos)
Parameters
orientationScrollOrientationThe scroll bar to move. Possible values: ScrollOrientation.
toPosintThe 0-based position to move the scroll bar to, in pixels.
SelectMenuItemById(string)
Selects an item from a context menu.
void SelectMenuItemById(string menuItemId)
Parameters
menuItemIdstringThe item ID.
SendKey(SapFunctionKey)
Presses a non-printing key or key combination.
void SendKey(SapFunctionKey key)
Parameters
keySapFunctionKeyThe key or key-combination.