New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public abstract class BaseUIAutomationScrollPatternProvider<T> : IScrollProvider where T : IRadRawElementProviderFragment

Inheritance: objectBaseUIAutomationScrollPatternProvider<T>

Implements: IScrollProvider

Constructors

Initializes a new instance of the BaseUIAutomationScrollPatternProvider class with the specified owner provider.

C#
protected BaseUIAutomationScrollPatternProvider(T ownerProvider)
Parameters:ownerProviderT

The owner provider that contains the scrollable content.

Properties

Gets a value indicating whether the control can scroll horizontally.

C#
public virtual bool HorizontallyScrollable { get; }

Implements: IScrollProvider.HorizontallyScrollable

Gets the horizontal scrollbar element for the scrollable content.

C#
public abstract RadScrollBarElement HorizontalScrollbar { get; }

Gets the current horizontal scroll position as a percentage of the total content area.

C#
public virtual double HorizontalScrollPercent { get; }

Implements: IScrollProvider.HorizontalScrollPercent

Gets the horizontal size of the viewable region as a percentage of the total content area.

C#
public virtual double HorizontalViewSize { get; }

Implements: IScrollProvider.HorizontalViewSize

Gets the owner provider that contains the scrollable content.

C#
public T OwnerProvider { get; }

Gets a value indicating whether the control can scroll vertically.

C#
public virtual bool VerticallyScrollable { get; }

Implements: IScrollProvider.VerticallyScrollable

Gets the vertical scrollbar element for the scrollable content.

C#
public abstract RadScrollBarElement VerticalScrollbar { get; }

Gets the current vertical scroll position as a percentage of the total content area.

C#
public virtual double VerticalScrollPercent { get; }

Implements: IScrollProvider.VerticalScrollPercent

Gets the vertical size of the viewable region as a percentage of the total content area.

C#
public virtual double VerticalViewSize { get; }

Implements: IScrollProvider.VerticalViewSize

Methods

Disconnects event handlers and releases resources associated with the scroll pattern provider.

C#
public virtual void Disconnect()

Scrolls the visible region of the content area horizontally and vertically by the specified scroll amounts.

C#
public virtual void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters:horizontalAmountScrollAmount

The horizontal scroll amount.

verticalAmountScrollAmount

The vertical scroll amount.

Implements: IScrollProvider.Scroll(ScrollAmount, ScrollAmount)

Sets the horizontal and vertical scroll position as a percentage of the total content area.

C#
public virtual void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters:horizontalPercentdouble

The horizontal scroll position as a percentage from 0 to 100.

verticalPercentdouble

The vertical scroll position as a percentage from 0 to 100.

Implements: IScrollProvider.SetScrollPercent(double, double)