Class ListBoxAutomationPeer
Exposes ListBox types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ListBoxAutomationPeer : SelectorAutomationPeer, IDependencyObject, ISelectionProvider
Constructors
| Improve this Doc View SourceListBoxAutomationPeer(ListBox)
Initializes a new instance of the ListBoxAutomationPeer class.
Declaration
public ListBoxAutomationPeer(ListBox owner)
Parameters
Type | Name | Description |
---|---|---|
ListBox | owner | The ListBox to associate with the ListBoxAutomationPeer. |
Methods
| Improve this Doc View SourceCreateItemAutomationPeer(Object)
Creates a new instance of the ItemAutomationPeer for a data item. The item peer is aligned with an item in the Items collection of the associated ListBox.
Declaration
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The data item to use as basis for the created ItemAutomationPeer. |
Returns
Type | Description |
---|---|
ItemAutomationPeer | A peer object that provides UI automation support for the specified data item in the owner ListBox. |
Overrides
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the ListBox that is associated with this ListBoxAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
Type | Description |
---|---|
AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the class name of the class that is associated with this ListBoxAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
Type | Description |
---|---|
System.String | The associated class name. |