Export (0) Print
Expand All

ISelectionItemProvider::RemoveFromSelection method

Removes the current element from the collection of selected items.

Syntax


HRESULT RemoveFromSelection();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Send an UIA_SelectionItem_ElementRemovedFromSelectionEventId event as appropriate.

Note  This rule does not depend on whether the container allows single or multiple selection, or on what method was used to change the selection. Only the result matters.

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

ISelectionItemProvider
UI Automation Providers Overview

 

 

Community Additions

ADD
Show:
© 2014 Microsoft