TreeViewDataItemAutomationPeer.ISelectionItemProvider.AddToSelection Method ()

.NET Framework (current version)
 

This API supports the product infrastructure and is not intended to be used directly from your code.

Adds the current element to the collection of selected items.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

void ISelectionItemProvider.AddToSelection()

Exception Condition
ElementNotAvailableException

UI Automation element is no longer available.

This member is an explicit interface member implementation. It can be used only when the TreeViewDataItemAutomationPeer instance is cast to an ISelectionItemProvider interface.

.NET Framework
Available since 4.0
Return to top
Show: