imageScaling(forSegment:)
Returns the image scaling mode associated with the specified segment.
Declaration
func imageScaling(forSegment segment: Int) -> NSImageScalingParameters
- segment:
The index of the segment whose image scaling mode you want to get. This method raises an exception (Rangeexception) if the index is out of bounds.
Return Value
The scaling mode in use for the specified segment. For the possible values, see NSSegmentedControl.Style. If no value has been explicitly set, NSImageScaling.scaleProportionallyDown is returned.
See Also
Configuring Individual Segments
setLabel(_:forSegment:)label(forSegment:)setImage(_:forSegment:)image(forSegment:)setImageScaling(_:forSegment:)setWidth(_:forSegment:)width(forSegment:)setEnabled(_:forSegment:)isEnabled(forSegment:)setMenu(_:forSegment:)menu(forSegment:)setToolTip(_:forSegment:)toolTip(forSegment:)setTag(_:forSegment:)tag(forSegment:)