ComboBoxItemDataAutomationPeer
ComboBoxItemDataAutomationPeer
ComboBoxItemDataAutomationPeer
ComboBoxItemDataAutomationPeer
Class
Definition
Exposes the data content of a ComboBoxItem to Microsoft UI Automation.
public : class ComboBoxItemDataAutomationPeer : SelectorItemAutomationPeer, IComboBoxItemDataAutomationPeer, IScrollItemProviderpublic class ComboBoxItemDataAutomationPeer : SelectorItemAutomationPeer, IComboBoxItemDataAutomationPeer, IScrollItemProviderPublic Class ComboBoxItemDataAutomationPeer Inherits SelectorItemAutomationPeer Implements IComboBoxItemDataAutomationPeer, IScrollItemProvider// This API is not available in Javascript.
- Inheritance
-
SelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeerSelectorItemAutomationPeerComboBoxItemDataAutomationPeerComboBoxItemDataAutomationPeerComboBoxItemDataAutomationPeerComboBoxItemDataAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
Remarks
ComboBoxItemDataAutomationPeer is generated from ComboBoxAutomationPeer logic, not an associated control class.
Default peer implementation and overrides in ComboBoxItemDataAutomationPeer
ComboBoxItemDataAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports that the peer supports PatternInterface.ScrollItem (IScrollItemProvider ). The base SelectorItemAutomationPeer supports PatternInterface.SelectionItem (ISelectionItemProvider ) and the base ItemAutomationPeer supports PatternInterface.VirtualizedItem (IVirtualizedItemProvider ).
- GetClassName returns "ComboBoxItem".
- GetAutomationControlType returns AutomationControlType.ListItem.
- Although ItemAutomationPeer reported IVirtualizedItemProvider support, ComboBoxItemDataAutomationPeer re-implements this to call ScrollIntoView.
The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.
Constructors
ComboBoxItemDataAutomationPeer(Object, ComboBoxAutomationPeer) ComboBoxItemDataAutomationPeer(Object, ComboBoxAutomationPeer) ComboBoxItemDataAutomationPeer(Object, ComboBoxAutomationPeer) ComboBoxItemDataAutomationPeer(Object, ComboBoxAutomationPeer)
Initializes a new instance of the ComboBoxItemDataAutomationPeer class.
public : ComboBoxItemDataAutomationPeer(PlatForm::Object item, ComboBoxAutomationPeer parent)public ComboBoxItemDataAutomationPeer(Object item, ComboBoxAutomationPeer parent)Public Sub New(item As Object, parent As ComboBoxAutomationPeer)// This API is not available in Javascript.
- item
- PlatForm::Object Object Object Object
The item data.
The owner to create for.
Methods
ScrollIntoView() ScrollIntoView() ScrollIntoView() ScrollIntoView()
Scrolls the content area of a parent container in order to display the peer owner's content within the visible region (viewport) of the container.
public : void ScrollIntoView()public void ScrollIntoView()Public Function ScrollIntoView() As void// This API is not available in Javascript.