Class
BaseUIAutomationScrollPatternProvider<T>

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:

cs-api-definition
public abstract class BaseUIAutomationScrollPatternProvider<T> : IScrollProvider where T : IRadRawElementProviderFragment

Inheritance: objectBaseUIAutomationScrollPatternProvider<T>

Implements: IScrollProvider

Constructors

BaseUIAutomationScrollPatternProvider(T)

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

Declaration

cs-api-definition
protected BaseUIAutomationScrollPatternProvider(T ownerProvider)

Parameters

ownerProvider

T

The owner provider that contains the scrollable content.

Properties

HorizontalScrollPercent

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

Declaration

cs-api-definition
public virtual double HorizontalScrollPercent { get; }

Property Value

double

Implements IScrollProvider.HorizontalScrollPercent

HorizontalScrollbar

Gets the horizontal scrollbar element for the scrollable content.

Declaration

cs-api-definition
public abstract RadScrollBarElement HorizontalScrollbar { get; }

Property Value

RadScrollBarElement

HorizontalViewSize

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

Declaration

cs-api-definition
public virtual double HorizontalViewSize { get; }

Property Value

double

Implements IScrollProvider.HorizontalViewSize

HorizontallyScrollable

Gets a value indicating whether the control can scroll horizontally.

Declaration

cs-api-definition
public virtual bool HorizontallyScrollable { get; }

Property Value

bool

Implements IScrollProvider.HorizontallyScrollable

OwnerProvider

Gets the owner provider that contains the scrollable content.

Declaration

cs-api-definition
public T OwnerProvider { get; }

Property Value

T

VerticalScrollPercent

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

Declaration

cs-api-definition
public virtual double VerticalScrollPercent { get; }

Property Value

double

Implements IScrollProvider.VerticalScrollPercent

VerticalScrollbar

Gets the vertical scrollbar element for the scrollable content.

Declaration

cs-api-definition
public abstract RadScrollBarElement VerticalScrollbar { get; }

Property Value

RadScrollBarElement

VerticalViewSize

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

Declaration

cs-api-definition
public virtual double VerticalViewSize { get; }

Property Value

double

Implements IScrollProvider.VerticalViewSize

VerticallyScrollable

Gets a value indicating whether the control can scroll vertically.

Declaration

cs-api-definition
public virtual bool VerticallyScrollable { get; }

Property Value

bool

Implements IScrollProvider.VerticallyScrollable

Methods

Disconnect()

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

Declaration

cs-api-definition
public virtual void Disconnect()

Scroll(ScrollAmount, ScrollAmount)

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

Declaration

cs-api-definition
public virtual void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)

Parameters

horizontalAmount

ScrollAmount

The horizontal scroll amount.

verticalAmount

ScrollAmount

The vertical scroll amount.

Implements IScrollProvider.Scroll(ScrollAmount, ScrollAmount)

SetScrollPercent(double, double)

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

Declaration

cs-api-definition
public virtual void SetScrollPercent(double horizontalPercent, double verticalPercent)

Parameters

horizontalPercent

double

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

verticalPercent

double

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

Implements IScrollProvider.SetScrollPercent(double, double)