Provides a base implementation of the IScrollProvider interface for UI Automation scroll pattern support.
Definition
Namespace:Telerik.WinControls.UIAutomation
Assembly:Telerik.WinControls.UI.dll
Type Parameters:
T
The type of the owner provider that must implement IRadRawElementProviderFragment.
Syntax:
public abstract class BaseUIAutomationScrollPatternProvider<T> : IScrollProvider where T : IRadRawElementProviderFragment
Inheritance: objectBaseUIAutomationScrollPatternProvider<T>
Implements:
Constructors
Initializes a new instance of the BaseUIAutomationScrollPatternProvider class with the specified owner provider.
protected BaseUIAutomationScrollPatternProvider(T ownerProvider)
The owner provider that contains the scrollable content.
Properties
Gets a value indicating whether the control can scroll horizontally.
public virtual bool HorizontallyScrollable { get; }
Implements:
Gets the horizontal scrollbar element for the scrollable content.
public abstract RadScrollBarElement HorizontalScrollbar { get; }
Gets the current horizontal scroll position as a percentage of the total content area.
public virtual double HorizontalScrollPercent { get; }
Implements:
Gets the horizontal size of the viewable region as a percentage of the total content area.
public virtual double HorizontalViewSize { get; }
Implements:
Gets the owner provider that contains the scrollable content.
public T OwnerProvider { get; }
Gets a value indicating whether the control can scroll vertically.
public virtual bool VerticallyScrollable { get; }
Implements:
Gets the vertical scrollbar element for the scrollable content.
public abstract RadScrollBarElement VerticalScrollbar { get; }
Gets the current vertical scroll position as a percentage of the total content area.
public virtual double VerticalScrollPercent { get; }
Implements:
Gets the vertical size of the viewable region as a percentage of the total content area.
public virtual double VerticalViewSize { get; }
Implements:
Methods
Disconnects event handlers and releases resources associated with the scroll pattern provider.
public virtual void Disconnect()
Scrolls the visible region of the content area horizontally and vertically by the specified scroll amounts.
public virtual void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
The horizontal scroll amount.
verticalAmountScrollAmountThe vertical scroll amount.
Implements:
Sets the horizontal and vertical scroll position as a percentage of the total content area.