Scroll vertical and horizental scrollers in % from left and 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 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
% from the top
verPercents
Type: System..::.Double
% from left

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