In this case, scrolling-related methods and property are available for the control that contains the scrollbars. Therefore, Silk Test Classic does not expose scrollbar objects.
listBox.SetVerticalScrollPercent(100)The following command scrolls the list box down by one unit:
listBox.ScrollVertical(ScrollAmount.SmallIncrement)
In this case the scrollbars are exposed. No scrolling-related methods and properties are available for the control itself. The horizontal and vertical scrollbar objects enable you to scroll in the control by specifying the increment or decrement, or the final position, as a parameter in the corresponding API functions. The increment or decrement can take the values of the ScrollAmount enumeration. For additional information, refer to the MSUIA documentation. The final position is related to the position of the object, which is defined by the application designer.
textBox.UIAVerticalScrollBar().ScrollToPosition(15)The following command scrolls a vertical scrollbar within a text box to the bottom:
textBox.UIAVerticalScrollBar().ScrollToMaximum()