Represents a set of items selected in the Diagram document.
Namespace: MindFusion.Diagramming
Package: Selection.js
JavaScript Copy Code |
---|
// class |
In a diagram document several items can be selected simultaneously. If more than one item is selected, the compound set of selected items is handled by an instance of the Selection class. Items in the selection can be of any element type. The items field gives a collection of all the items in the selection. You can get type-safe access to items of specific class by the links and nodes collections properties.