Share via


Selection Constructor (IEnumerable)

Initializes a new instance of the Selection class with the specified enumeration of objects.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    selectedObjects As IEnumerable _
)
public Selection(
    IEnumerable selectedObjects
)
public:
Selection(
    IEnumerable^ selectedObjects
)
new : 
        selectedObjects:IEnumerable -> Selection
public function Selection(
    selectedObjects : IEnumerable
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The selectedObjects parameter is nulla null reference (Nothing in Visual Basic).

Remarks

This constructor creates a selection that contains the specified objects. The first object in selectedObjects is the primary selection object.

.NET Framework Security

See Also

Reference

Selection Class

Selection Overload

Microsoft.Windows.Design.Interaction Namespace

SelectionCommands

SelectionOperations

SelectionTool

EditingContext

Other Resources

WPF Designer Extensibility Architecture