Verify if horizental scroller visible and can be scrolled.

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;
}

Return Value

true is scroller found

Examples

CopyC#
UIAWindow vsWin = Desktop.UIA["Visual Studio", true] as UIAWindow;
UIATree solutionTree = vsWin[@"Solution Explorer",true][@"", @"VsUIHierarchyBaseWin", @"UIAPane"][@"Solution Explorer", @"SysTreeView32", @"UIATree"] as UIATree;
if (solutionTree.CanScrollVertical)
    solutionTree.Scroll(-1, 40);
if (solutionTree.CanScrollHorizontal)
    solutionTree.Scroll(20,-1);
double curVertPos = solutionTree.VericalPercents;
double curHorPos = solutionTree.HorizontalPercents;

See Also