SelectionItemPattern_Select Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Selects an element in a selection container.

Syntax

HRESULT SelectionItemPattern_Select(      
    HUIAPATTERNOBJECT hobj
);

Parameters

  • hobj
    [in] The control pattern object.

Return Value

Returns S_OK if successful or an error value otherwise.

Remarks

All other elements are deselected. To select an element without deselecting others, use SelectionItemPattern_AddToSelection.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP