The layout of the control in absolute coordinates, (relative to the upper left corner of the desktop)
Namespace:
QAliber.Engine.ControlsAssembly: QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public virtual Rect Layout { get; } |
| Visual Basic (Declaration) |
|---|
Public Overridable ReadOnly Property Layout As Rect |
| Visual C++ |
|---|
public: virtual property Rect Layout { Rect get (); } |
Return Value
System.Windows.Rect
Remarks
Layout may have negative numbers if the control is hidden / minimized, etc.
Examples
UIAButton button1 = Desktop.UIA[@"", @"Shell_TrayWnd", @"UIAPane"][@"Start", @"Button", @"304"] as UIAButton; Rect buttonLayout = button1.Layout; if (buttonLayout.Location.X > 350) Log.Default.Error("Layout error button X location is " + buttonLayout.Location.X);