MonobjcMonobjc Documented Class Library
ImageScalingForSegment Method (segment)
NamespacesMonobjc.AppKitNSSegmentedCellImageScalingForSegment(NSInteger)

Returns the image scaling mode associated with the specified segment.

Original signature is '- (NSImageScaling)imageScalingForSegment:(NSInteger)segment'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSImageScaling ImageScalingForSegment(
	NSInteger segment
)
Public Overridable Function ImageScalingForSegment ( _
	segment As NSInteger _
) As NSImageScaling
public:
virtual NSImageScaling ImageScalingForSegment(
	NSInteger segment
)
Parameters
segment (NSInteger)
The index of the segment whose image scaling mode you want to get. This method raises an NSRangeException if the index is out of bounds.
Return Value
The scaling mode in use for the specified segment. For the possible values see Segmented Control Visual Styles. If no value has been explicitly set NSImageScaleProportionallyDown is returned.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)