Interface IItemContainerProvider

All Superinterfaces:
IInitable

public interface IItemContainerProvider extends IInitable
Provides access to controls that act as containers of other controls, such as a virtual list-view.

The ItemContainer control pattern allows a container object to efficiently lookup an item by a specified automation element property, such as Name, AutomationId, or IsSelected state. While this control pattern is introduced with a view to being used by virtualized containers, it can be implemented by any container that provides name lookup, independently of whether that container uses virtualization.

  • Method Details

    • FindItemByProperty

      IUIAElement FindItemByProperty(IUIAElement startAfter, IPropertyId propertyId, Variant value)
      Retrieves an element within a containing element, based on a specified property value.
      Parameters:
      startAfter - The UI Automation provider of the element after which the search begins, or NULL to search all elements.
      propertyId - The property identifier. For a list of property IDs, see Property Identifiers.
      value - The value of the property.
      Returns:
      Receives a pointer to the UI Automation provider of the element.