Scroll the document, Horizontal and Vertical, scroller by % from the top / left

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

Syntax

C#
public void Scroll(
	double horPercents,
	double verPercents
)
Visual Basic (Declaration)
Public Sub Scroll ( _
	horPercents As Double, _
	verPercents As Double _
)
Visual C++
public:
virtual void Scroll(
	double horPercents, 
	double verPercents
) sealed

Parameters

horPercents
Type: System..::.Double

[Missing <param name="horPercents"/> documentation for "M:QAliber.Engine.Controls.UIA.UIADocument.Scroll(System.Double,System.Double)"]

verPercents
Type: System..::.Double

[Missing <param name="verPercents"/> documentation for "M:QAliber.Engine.Controls.UIA.UIADocument.Scroll(System.Double,System.Double)"]

Remarks

If scroller is not visible, be sure to set the value to negative

Examples

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 > 100; idx--)
    doc.Write("{ENTER}");
doc.Write("End");
//When done scroll 10% from the top, note: since no Horizontal scroller
//it is set to a negative (otherwise this will fail)
doc.Scroll(-1,10);

See Also