Class
RadListBoxAutomationPeer

Represents the automation peer for the RadListBox control, enabling accessibility features and interactions with UI Automation clients. This class provides various functionalities, including retrieving selection details, scrolling capabilities, and exposing custom properties of the control for automation purposes. It inherits from ItemsControlAutomationPeer and implements interfaces ISelectionProvider and IScrollProvider.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class RadListBoxAutomationPeer : ItemsControlAutomationPeer, ISelectionProvider, IScrollProvider

Inheritance: objectRadListBoxAutomationPeer

Derived Classes: GalleryAutomationPeerRadClockAutomationPeer

Implements: IScrollProviderISelectionProvider

Constructors

RadListBoxAutomationPeer(RadListBox)

Initializes a new instance of the RadListBoxAutomationPeer class.

Declaration

cs-api-definition
public RadListBoxAutomationPeer(RadListBox owner)

Parameters

owner

RadListBox

The owner.

Properties

CanSelectMultiple

Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

Declaration

cs-api-definition
public bool CanSelectMultiple { get; }

Property Value

bool

HorizontalScrollPercent

Gets the current horizontal scroll position.

Declaration

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

Property Value

double

HorizontalViewSize

Gets the current horizontal view size.

Declaration

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

Property Value

double

HorizontallyScrollable

Gets a value that indicates whether the control can scroll horizontally.

Declaration

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

Property Value

bool

IsSelectionRequired

Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.

Declaration

cs-api-definition
public bool IsSelectionRequired { get; }

Property Value

bool

VerticalScrollPercent

Gets the current vertical scroll position.

Declaration

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

Property Value

double

VerticalViewSize

Gets the vertical view size.

Declaration

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

Property Value

double

VerticallyScrollable

Gets a value that indicates whether the control can scroll vertically.

Declaration

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

Property Value

bool

Methods

CreateItemAutomationPeer(object)

Creates a new instance of the System.Windows.Automation.Peers.ItemAutomationPeer for a data item in the System.Windows.Controls.ItemsControl.Items collection of this System.Windows.Controls.ItemsControl.

Declaration

cs-api-definition
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)

Parameters

item

object

Returns

ItemAutomationPeer

GetAutomationControlTypeCore()

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType().

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

GetOrientationCore()

Gets a value that indicates whether the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer is laid out in a specific direction. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetOrientation().

Declaration

cs-api-definition
protected override AutomationOrientation GetOrientationCore()

Returns

AutomationOrientation

GetPattern(PatternInterface)

Gets the pattern.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

Returns

object

GetSelection()

Retrieves a UI Automation provider for each child element that is selected.

Declaration

cs-api-definition
public IRawElementProviderSimple[] GetSelection()

Returns

IRawElementProviderSimple[]

Scroll(ScrollAmount, ScrollAmount)

Scrolls the visible region of the content area horizontally and vertically.

Declaration

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

Parameters

horizontalAmount

ScrollAmount

verticalAmount

ScrollAmount

SetScrollPercent(double, double)

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

Declaration

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

Parameters

horizontalPercent

double

verticalPercent

double