Selection Constructor (array<ModelItem )
Initializes a new instance of the Selection class with the specified array of ModelItem objects.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub New ( _
ParamArray selectedObjects As ModelItem() _
)
public Selection(
params ModelItem[] selectedObjects
)
public:
Selection(
... array<ModelItem^>^ selectedObjects
)
new :
selectedObjects:ModelItem[] -> Selection
public function Selection(
... selectedObjects : ModelItem[]
)
Parameters
- selectedObjects
Type: array<Microsoft.Windows.Design.Model.ModelItem[]
An array of ModelItem objects to add to the selection.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace