MonobjcMonobjc Documented Class Library
SetMenuForSegment Method (menu, segment)
NamespacesMonobjc.AppKitNSSegmentedControlSetMenuForSegment(NSMenu, NSInteger)

Sets the menu for the specified segment.

Original signature is '- (void)setMenu:(NSMenu *)menu forSegment:(NSInteger)segment'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetMenuForSegment(
	NSMenu menu,
	NSInteger segment
Public Overridable Sub SetMenuForSegment ( _
	menu As NSMenu, _
	segment As NSInteger _
virtual void SetMenuForSegment(
	NSMenu^ menu, 
	NSInteger segment
menu (NSMenu)
The menu you want to add to the segment or nil to clear the current menu. This menu is displayed when the user clicks and holds the mouse button while the mouse is over the segment.
segment (NSInteger)
The index of the segment whose menu 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)