SelectionItemPattern_AddToSelection Function

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

Adds an unselected element to a selection in a control.

Syntax

HRESULT SelectionItemPattern_AddToSelection(      
    HUIAPATTERNOBJECT hobj
);

Parameters

  • hobj
    [in] The control pattern object.

Return Value

Returns S_OK if successful or an error value otherwise.

Remarks

In a control that supports multiple selection, this function adds an item to the selection. In a single-selection control, it deselects the currently selected item and selects the specified item.

Function Information

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