Select2 Method
You use the Select2 method of the ChPoint object to work with an object in the collection of currently selected objects. Returns Nothing.
expression.Select2(selmode)
expression Required. An expression that returns a ChPoint object.
selmode Optional ChartSelectMode.
Value | Description |
chSelectModeReplace (0) | (Default) Makes this object the currently selected object, and the primary selection. Cancels the selection of any other selected object. |
chSelectModeAdd (1) | Adds this object to the set of currently selected objects. If there is no current selection, using this has the same effect as using the Select method. If one or more objects are already selected, this object will be a secondary selection. |
chSelectModeRemove (2) | Removes this object from the set of currently selected objects. If the object is not currently selected, this setting has no effect. If the currently selected object is the primary object, the object is removed and next item in the collection becomes the primary object. If there are no other items in the collection, the ChartSpace object becomes the primary object. |
chSelectModeToggle (3) | If the object is not in the set of currently selected objects, this setting has the same effect as chSelectModeAdd. If the object is in the set of currently selected objects, this setting has the same effect as chSelectModeRemove. |
Remarks
The Select2 method is similar to the Select method of the ChPoint object, except the Select2 method has an optional selmode parameter. The primary selection is typically the first object selected. Other selected objects are secondary selections. Only the primary selection is recognized by Chart component methods and properties that work with the current selection.