Returns the width of the specified segment.
- macOS 10.3+
The index of the segment whose width you want to get. This method raises an exception (
range) if the index is out of bounds.
The width of the segment, measured in points, or 0 if the segment is sized to fit the available space automatically.