Sets the selection state of the specified segment.
- macOS 10.3+
trueif you want to select the segment; otherwise,
The index of the segment whose selection state you want to set. This method raises an exception (
range) if the index is out of bounds.