Selection Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines a selection of objects that are published as a ContextItem in the EditingContext.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

System.Object
  System.Activities.Presentation.ContextItem
    System.Activities.Presentation.View.Selection

public class Selection : ContextItem

NameDescription
System_CAPS_pubmethodSelection()

Creates an empty Selection object.

System_CAPS_pubmethodSelection(IEnumerable)

Creates a Selection object with the specified objects selected.

System_CAPS_pubmethodSelection(IEnumerable, Predicate<ModelItem>)

Creates a Selection object with the specified objects selected.

System_CAPS_pubmethodSelection(IEnumerable<ModelItem>)

Creates a Selection object with the specified objects selected.

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

Creates a Selection object with the specified objects selected.

System_CAPS_pubmethodSelection(ModelItem[])

Creates a Selection object with the specified objects selected.

NameDescription
System_CAPS_pubpropertyItemType

Returns the item type for this editing context item.(Overrides ContextItem.ItemType.)

System_CAPS_pubpropertyPrimarySelection

Returns the primary selection.

System_CAPS_pubpropertySelectedObjects

The enumeration of selected objects.

System_CAPS_pubpropertySelectionCount

The number of objects that are currently selected in this selection.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnItemChanged(EditingContext, ContextItem)

Represents a method that is called on the context item before it is stored in the context item manager. The previous item in the context item manager is passed as a parameter.(Inherited from ContextItem.)

System_CAPS_pubmethodSystem_CAPS_staticSelect(EditingContext, ModelItem)

A selection helper method that takes the existing selection in the context and selects an item into it. If the item is already in the selection, the selection is preserved and the item is promoted to the primary selection.

System_CAPS_pubmethodSystem_CAPS_staticSelectOnly(EditingContext, ModelItem)

A selection helper method that sets an item into the selection. Any existing items are deselected.

System_CAPS_pubmethodSystem_CAPS_staticSubscribe(EditingContext, SubscribeContextCallback<Selection>)

A helper method that subscribes to selection change events.

System_CAPS_pubmethodSystem_CAPS_staticToggle(EditingContext, ModelItem)

A selection helper method that takes the existing selection in thecontext and creates a new selection that contains the toggled state of the item. If the item is to be added to the selection, it is added as the primary selection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticUnion(EditingContext, ModelItem)

A selection helper method that takes the existing selection in the context and creates a new selection that contains the original selection and the specified item to add. If the specified item to add is already in the original selection, it is promoted to the primary selection.

System_CAPS_pubmethodSystem_CAPS_staticUnsubscribe(EditingContext, SubscribeContextCallback<Selection>)

A helper method that removes a previously added selection change event.

Selections consist of zero or more objects. The first object in a selection is defined as the primary selection, which is used when one object in a group must be used as a key. Each object is stored as a T:System.WorkflowModel.Presentation.Model.ModelItem.

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: