Returns the label of the specified segment.
- macOS 10.3+
The index of the segment whose label you want to get. This method raises an exception (
range) if the index is out of bounds.
The label of the segment. The returned string contains the entire text of the label, even if that text is normally truncated during drawing.