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