ClassRadListBoxAutomationPeer
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:
public class RadListBoxAutomationPeer : ItemsControlAutomationPeer, ISelectionProvider, IScrollProvider
Inheritance: objectRadListBoxAutomationPeer
Derived Classes:
Implements:
Constructors
RadListBoxAutomationPeer(RadListBox)
Initializes a new instance of the RadListBoxAutomationPeer class.
Declaration
public RadListBoxAutomationPeer(RadListBox owner)
Parameters
owner
The owner.
Properties
CanSelectMultiple
Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.
HorizontalScrollPercent
Gets the current horizontal scroll position.
HorizontalViewSize
Gets the current horizontal view size.
HorizontallyScrollable
Gets a value that indicates whether the control can scroll horizontally.
IsSelectionRequired
Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.
VerticalScrollPercent
Gets the current vertical scroll position.
VerticalViewSize
Gets the vertical view size.
VerticallyScrollable
Gets a value that indicates whether the control can scroll vertically.
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
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
item
Returns
ItemAutomationPeer
GetAutomationControlTypeCore()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
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
protected override AutomationOrientation GetOrientationCore()
Returns
AutomationOrientation
GetPattern(PatternInterface)
Gets the pattern.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
Returns
GetSelection()
Retrieves a UI Automation provider for each child element that is selected.
Declaration
public IRawElementProviderSimple[] GetSelection()
Returns
IRawElementProviderSimple[]
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
Declaration
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.