Retrive the scroller position in % from the left side

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 HorizontalPercents { get; }
Visual Basic (Declaration)
Public ReadOnly Property HorizontalPercents As Double
Visual C++
public:
virtual property double HorizontalPercents {
	double get () sealed;
}

Return Value

double % distance from left position

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