MonobjcMonobjc Documented Class Library
LabelForSegment Method (segment)
NamespacesMonobjc.AppKitNSSegmentedControlLabelForSegment(NSInteger)

Returns the label of the specified segment

Original signature is '- (NSString *)labelForSegment:(NSInteger)segment'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString LabelForSegment(
	NSInteger segment
)
Public Overridable Function LabelForSegment ( _
	segment As NSInteger _
) As NSString
public:
virtual NSString^ LabelForSegment(
	NSInteger segment
)
Parameters
segment (NSInteger)
The index of the segment whose label you want to get. This method raises an NSRangeException if the index is out of bounds.
Return Value
The label of the segment. The returned string contains the entire text of the label, even if that text is normally truncated during drawing.
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)