Uređivanje

Dijeli putem


Selection Constructors

Definition

Creates a Selection object.

Overloads

Selection()

Creates an empty Selection object.

Selection(ModelItem[])

Creates a Selection object with the specified objects selected.

Selection(IEnumerable<ModelItem>)

Creates a Selection object with the specified objects selected.

Selection(IEnumerable)

Creates a Selection object with the specified objects selected.

Selection(IEnumerable<ModelItem>, Predicate<ModelItem>)

Creates a Selection object with the specified objects selected.

Selection(IEnumerable, Predicate<ModelItem>)

Creates a Selection object with the specified objects selected.

Selection()

Creates an empty Selection object.

public:
 Selection();
public Selection ();
Public Sub New ()

Applies to

Selection(ModelItem[])

Creates a Selection object with the specified objects selected.

public:
 Selection(... cli::array <System::Activities::Presentation::Model::ModelItem ^> ^ selectedObjects);
public Selection (params System.Activities.Presentation.Model.ModelItem[] selectedObjects);
new System.Activities.Presentation.View.Selection : System.Activities.Presentation.Model.ModelItem[] -> System.Activities.Presentation.View.Selection
Public Sub New (ParamArray selectedObjects As ModelItem())

Parameters

selectedObjects
ModelItem[]

A parameter array of objects that should be selected.

Remarks

The first object is considered the primary selection.

Applies to

Selection(IEnumerable<ModelItem>)

Creates a Selection object with the specified objects selected.

public:
 Selection(System::Collections::Generic::IEnumerable<System::Activities::Presentation::Model::ModelItem ^> ^ selectedObjects);
public Selection (System.Collections.Generic.IEnumerable<System.Activities.Presentation.Model.ModelItem> selectedObjects);
new System.Activities.Presentation.View.Selection : seq<System.Activities.Presentation.Model.ModelItem> -> System.Activities.Presentation.View.Selection
Public Sub New (selectedObjects As IEnumerable(Of ModelItem))

Parameters

selectedObjects
IEnumerable<ModelItem>

An enumeration of objects that should be selected.

Exceptions

If selectedObjects is null.

Remarks

The first object in the enumeration is considered the primary selection.

Applies to

Selection(IEnumerable)

Creates a Selection object with the specified objects selected.

public:
 Selection(System::Collections::IEnumerable ^ selectedObjects);
public Selection (System.Collections.IEnumerable selectedObjects);
new System.Activities.Presentation.View.Selection : System.Collections.IEnumerable -> System.Activities.Presentation.View.Selection
Public Sub New (selectedObjects As IEnumerable)

Parameters

selectedObjects
IEnumerable

An enumeration of objects that should be selected.

Exceptions

If selectedObjects is null.

Remarks

The first object in the enumeration is considered the primary selection.

Applies to

Selection(IEnumerable<ModelItem>, Predicate<ModelItem>)

Creates a Selection object with the specified objects selected.

public:
 Selection(System::Collections::Generic::IEnumerable<System::Activities::Presentation::Model::ModelItem ^> ^ selectedObjects, Predicate<System::Activities::Presentation::Model::ModelItem ^> ^ match);
public Selection (System.Collections.Generic.IEnumerable<System.Activities.Presentation.Model.ModelItem> selectedObjects, Predicate<System.Activities.Presentation.Model.ModelItem> match);
new System.Activities.Presentation.View.Selection : seq<System.Activities.Presentation.Model.ModelItem> * Predicate<System.Activities.Presentation.Model.ModelItem> -> System.Activities.Presentation.View.Selection
Public Sub New (selectedObjects As IEnumerable(Of ModelItem), match As Predicate(Of ModelItem))

Parameters

selectedObjects
IEnumerable<ModelItem>

An enumeration of objects that should be selected.

match
Predicate<ModelItem>

The criteria for including objects. Only those objects in selectedObjects that match the predicate will be added to the selection.

Exceptions

If selectedObjects or match is null.

Remarks

The first object in the enumeration that matches the predicate is considered the primary selection.

Applies to

Selection(IEnumerable, Predicate<ModelItem>)

Creates a Selection object with the specified objects selected.

public:
 Selection(System::Collections::IEnumerable ^ selectedObjects, Predicate<System::Activities::Presentation::Model::ModelItem ^> ^ match);
public Selection (System.Collections.IEnumerable selectedObjects, Predicate<System.Activities.Presentation.Model.ModelItem> match);
new System.Activities.Presentation.View.Selection : System.Collections.IEnumerable * Predicate<System.Activities.Presentation.Model.ModelItem> -> System.Activities.Presentation.View.Selection
Public Sub New (selectedObjects As IEnumerable, match As Predicate(Of ModelItem))

Parameters

selectedObjects
IEnumerable

An enumeration of objects that should be selected.

match
Predicate<ModelItem>

The criteria for including objects. Only those objects in selectedObjects that match the predicate will be added to the selection.

Exceptions

If selectedObjects or match is null.

Remarks

The first object in the enumeration that matches the predicate is considered the primary selection.

Applies to