Exposes a scroll-bar element and its first button, thumb, and second button to UI Automation clients.
Definition
Namespace:Telerik.WinControls.UIAutomation.ScrollBar
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ScrollBarElementUIAutomationProvider : RadElementBaseUIAutomationProvider<RadScrollBarElement>, IRadRawElementProviderFragment, IRawElementProviderFragment, IRawElementProviderSimple
Inheritance: objectRadFragmentUIAutomationProviderRadElementBaseUIAutomationProvider<RadScrollBarElement>ScrollBarElementUIAutomationProvider
Implements:
Inherited Members
Constructors
Creates a provider for a scroll-bar element within its parent fragment.
public ScrollBarElementUIAutomationProvider(IRadRawElementProviderFragment parent, RadScrollBarElement owner)
The fragment that contains the scroll bar.
ownerRadScrollBarElementThe scroll-bar element represented by this provider.
Methods
Gets the base AutomationId when present, or builds one from the scroll type.
public override object GetAutomationId()
The base AutomationId, or the scroll type followed by "ScrollbarElement" when the base value is empty.
Overrides:
Gets a range-value provider for the RangeValue pattern; other patterns are handled by the base provider.
Gets UI Automation properties for the scroll bar, including its orientation and scroll-type name.
Navigates to the first or last child button; other directions use the base fragment navigation.
public override IRawElementProviderFragment Navigate(NavigateDirection direction)
The direction in which to navigate.
Returns:The first or second button provider for the corresponding child direction, or the base provider's result.
Overrides:
Navigates through siblings in first-button, thumb, second-button order.
public override IRawElementProviderFragment NavigateNextSibling(IRawElementProviderFragment child)
The child from which to navigate.
Returns:The adjacent sibling provider, or null when the child has no next sibling.
Overrides:
Navigates through siblings in first-button, thumb, second-button order.
public override IRawElementProviderFragment NavigatePreviousSibling(IRawElementProviderFragment child)
The child from which to navigate.
Returns:The adjacent sibling provider, or null when the child has no previous sibling.
Overrides:
Throws because the scroll bar cannot receive keyboard focus.
public override void SetFocus()
The scroll bar cannot be focused.
Overrides: