MonobjcMonobjc Documented Class Library
IndexOfItemWithTitle Method (aTitle)
NamespacesMonobjc.AppKitNSMenuIndexOfItemWithTitle(NSString)

Returns the index of the first menu item in the receiver that has a specified title.

Original signature is '- (NSInteger)indexOfItemWithTitle:(NSString *)aTitle'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithTitle(
	NSString aTitle
)
Public Overridable Function IndexOfItemWithTitle ( _
	aTitle As NSString _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithTitle(
	NSString^ aTitle
)
Parameters
aTitle (NSString)
The title of a menu item in the receiver.
Return Value
The integer index of the menu item or, if no such menu item is in the menu, –1.
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)