property SwimLane.Selection as Variant
Returns or sets a safe array of selected elements on the surface.

TypeDescription
Variant A Safe-Array of Element objects. If calling the Set property the Safe-Array may contains the ID of the Elements to be selected, like: Selection = Array("1", "2"), which indicates that the elements with the ID, "1" and "2" are selected. The Selection method can be used to enumerate the selected elements using the for each statements.
The Selection property sets or gets a safe array of selected elements. The SelCount property counts the number of selected elements. The SelElement property returns the selected element based on its index in the selected elements collection. The SingleSel property specifies whether the surface allows selecting one or multiple elements. The SelectAll method selects all elements in the chart. Use the UnselectAll method to unselect all elements on the surface. The SelectionChanged event occurs once a new element is selected or unselected. The Selected property of the Element object indicates whether the element is selected or unselected. The Selectable property of the Element object indicates whether the element is selectable or un-selectable.

The SelectObjectColor / SelectObjectTextColor property specifies the colors to show the selected elements ( while the control has the focus ). The SelectObjectColorInactive / SelectObjectTextColorInactive property specifies the color to show the selected elements ( while the control is not focused ). The SelectObjectStyle property specifies the style to show the selected elements ( like changing the element's background/foreground colors, showing a border around the selected elements, and so on ). Use the Background(exSelectElementRectColor) property to specify the color to show the rectangle that highlights the elements that intersect the dragging rectangle.

The AllowSelectObject property indicates the keys combination to allow user selecting new elements. The AllowSelectObjectRect property specifies the keys combination so the user can select the elements from the dragging rectangle. The AllowSelectNothing property indicates whether the selection is cleared once the user clicks any empty area on the surface.