Export (0) Print
Expand All

ISelectionProvider.CanSelectMultiple Property

Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

Namespace:  System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

bool CanSelectMultiple { get; }

Property Value

Type: System.Boolean
true if multiple selection is allowed; otherwise false.

This property may be dynamic. For example, in rare cases a control might allow multiple items to be selected on initialization but subsequently allow only single selections to be made.

The following example shows an implementation of this method for a list that does not allow selection of more than one item at a time.

/// <summary> 
/// Specifies whether selection of more than one item at a time is supported. 
/// </summary> 
bool ISelectionProvider.CanSelectMultiple
{
    get
    {
        return false;
    }
}

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft