SelectionPattern.SelectionProperty Field

 

Identifies the property that gets the selected items in a container.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

static val SelectionProperty : AutomationProperty

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent field in SelectionPatternIdentifiers.

This property is not present in SelectionPattern.SelectionPatternInformation and must be retrieved by using GetCurrentPropertyValue or GetCachedPropertyValue.

In the following example, a collection of AutomationElements representing the selected items in a selection container is obtained.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: