Class ListBoxItemAutomationPeer
Inheritance
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class ListBoxItemAutomationPeer : SelectorItemAutomationPeer, IDependencyObject, ISelectionItemProvider, IScrollItemProvider
Constructors
| Improve this Doc View SourceListBoxItemAutomationPeer(Object, SelectorAutomationPeer)
Initializes a new instance of the ListBoxItemAutomationPeer class using the specified selector automation peer.
Declaration
public ListBoxItemAutomationPeer(object owner, SelectorAutomationPeer selectorAutomationPeer)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | owner | The ListBoxItem instance that is associated with this ListBoxItemAutomationPeer. |
| SelectorAutomationPeer | selectorAutomationPeer | The SelectorAutomationPeer that is associated with the ListBox that holds the Items collection. |
ListBoxItemAutomationPeer(ListBoxItem)
Initializes a new instance of the ListBoxItemAutomationPeer class.
Declaration
public ListBoxItemAutomationPeer(ListBoxItem owner)
Parameters
| Type | Name | Description |
|---|---|---|
| ListBoxItem | owner | The ListBoxItem instance that is associated with this ListBoxItemAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the element that is associated with this ListBoxItemAutomationPeer. 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 name of the class that is associated with this ListBoxItemAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The class name. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the requested pattern, based on the patterns supported by this ListBoxItemAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternInterface | patternInterface | One of the enumeration values. |
Returns
| Type | Description |
|---|---|
| System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIScrollItemProvider.ScrollIntoView()
Declaration
void IScrollItemProvider.ScrollIntoView()