[Missing <summary> documentation for "P:QAliber.Engine.Controls.UIA.UIADocument.CanScrollHorizontal"]

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

Syntax

C#
public bool CanScrollHorizontal { get; }
Visual Basic (Declaration)
Public ReadOnly Property CanScrollHorizontal As Boolean
Visual C++
public:
virtual property bool CanScrollHorizontal {
	bool get () sealed;
}

Examples

CopyC#
System.Diagnostics.Process.Start("notepad");
System.Threading.Thread.Sleep(2000);

UIAWindow notepadWin = Desktop.UIA[@"Untitled - Notepad", @"Notepad", @"UIAWindow"] as UIAWindow;
UAIDocument doc = notepadWin[@"", @"Edit", @"15"] as UAIDocument;
MessageBox.Show("On clean document no scrollers so, can scroll hor or ver is " 
    + doc.CanScrollHorizontal + " and " + doc.CanScrollVertical);

doc.Write("Start");

 for (int idx = 100; idx > 0; idx--)
    doc.Write("{ENTER}");

doc.Write("End");
MessageBox.Show("after writing some text horrizontal is still " + doc.CanScrollHorizontal + " but vertical now is: " + doc.CanScrollVertical + ". Press ok to scroll up");
//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