Click or drag to resize
ProjectSelection Class
Represents a collection of all selected objects. Selection is a concept used from the user interface. Typically it is used to specify for which objects to perform an action, to view information for specific objects and to show which operations that are availble for specific objects. The most common way for a user to select an object is to click with the mouse in the graphic view or in a browser. Using this object you can programatically control which objects that are selected and get notified when selection has changed.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.RobotStudioProjectSelection

Namespace:  ABB.Robotics.RobotStudio
Assembly:  ABB.Robotics.RobotStudio (in ABB.Robotics.RobotStudio.dll) Version: 7.0.8747.636
Syntax
C#
public class ProjectSelection : ICollection, 
	IEnumerable, IEnumerable<Object>

The ProjectSelection type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of elements in the ProjectSelection.
Public propertyIsSynchronized
Gets a value indicating whether access to the ProjectSelection is synchronized (thread safe).
Public propertySingleSelectedObject
If a single object is selected, that object is returned, otherwise null.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ProjectSelection.
Top
Methods
  NameDescription
Public methodAdd(Object)
Adds an object to the selection.
Public methodAdd(Object, SelectionReason)
Adds an object to the selection, also specifying why the object was selected.
Public methodAddRange
Adds a range of objects to the selection.
Public methodClear
Removes all objects from the selection.
Public methodContains
Determines whether the object is currently selected.
Public methodCopyTo(Array, Int32)
Copies all of the objects in this collection to the specified array, starting at the specified index of the target array.
Public methodCopyTo(Object, Int32)
Copies the elements of the ProjectSelection to an array, starting at a particular array index.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the ProjectSelection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetTypes
Returns an array containing the types of all selected objects.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes an object from the selection.
Public methodSet
Sets the selection to zero or more objects.
Public methodToArray
Returns an array containing all selected objects.
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventObjectAdded
Occurs when an object has been added to the collection of selected objects.
Public eventObjectRemoved
Occurs when an object has been removed from the collection of selected objects.
Top
Version Information

Supported in: 1.0.0.0
See Also