MonobjcMonobjc Documented Class Library
SetLabelForSegment Method (label, segment)
NamespacesMonobjc.AppKitNSSegmentedControlSetLabelForSegment(NSString, NSInteger)

Sets the label for the specified segment.

Original signature is '- (void)setLabel:(NSString *)label forSegment:(NSInteger)segment'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetLabelForSegment(
	NSString label,
	NSInteger segment
)
Public Overridable Sub SetLabelForSegment ( _
	label As NSString, _
	segment As NSInteger _
)
public:
virtual void SetLabelForSegment(
	NSString^ label, 
	NSInteger segment
)
Parameters
label (NSString)
The label you want to display in the segment. If the width of the string is greater than the width of the segment, the string's text is truncated during drawing.
segment (NSInteger)
The index of the segment whose label 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)