MonobjcMonobjc Documented Class Library
SetImageForSegment Method (image, segment)
NamespacesMonobjc.AppKitNSSegmentedControlSetImageForSegment(NSImage, NSInteger)

Sets the image for the specified segment.

Original signature is '- (void)setImage:(NSImage *)image forSegment:(NSInteger)segment'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetImageForSegment(
	NSImage image,
	NSInteger segment
Public Overridable Sub SetImageForSegment ( _
	image As NSImage, _
	segment As NSInteger _
virtual void SetImageForSegment(
	NSImage^ image, 
	NSInteger segment
image (NSImage)
The image to apply to the segment or nil if you want to clear the existing image. Images are not scaled to fit inside a segment. If the image is larger than the available space, it is clipped.
segment (NSInteger)
The index of the segment whose image you want to set. This method raises an NSRangeException if the index is out of bounds.
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)