Get the current position of the vertical scroller, in % from top.

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public double VericalPercents { get; }
Visual Basic (Declaration)
Public ReadOnly Property VericalPercents As Double
Visual C++
public:
virtual property double VericalPercents {
	double get () sealed;
}

Return Value

-1 if no scroller,else the position in double

Examples

This example will launce notepad to demostrae the scroller functionality.
CopyC#
 System.Diagnostics.Process.Start("notepad");
 System.Threading.Thread.Sleep(2000);
 UIAWindow notepadWin = Desktop.UIA[@"Untitled - Notepad", @"Notepad", @"UIAWindow"] as UIAWindow;
 UIADocument doc = notepadWin[@"", @"Edit", @"15"] as UIADocument;
doc.Write("Start");
 for (int idx = 100; idx > 0; idx--)
 {
     doc.Write("{ENTER}");
     if (idx % 50 == 0)
     {
         MessageBox.Show("vertical % is: " + doc.VericalPercents + "\n Horizental % is: " + doc.HorizontalPercents);
     }
 }
 for (int idx = 50; idx > 0; idx--)
 {
     doc.Write("{TAB}a");
     if (idx % 25 == 0)
     {
         MessageBox.Show("vertical % is: " + doc.VericalPercents + "\n Horizental % is: " + doc.HorizontalPercents);
     }
 }
 MessageBox.Show("Scroll back");
     doc.Scroll(20, 10);
     MessageBox.Show("vertical % is: " + doc.VericalPercents + "\n Horizental % is: " + doc.HorizontalPercents);

See Also