MonobjcMonobjc Documented Class Library
IndexOfItemWithRepresentedObject Method (anObject)
NamespacesMonobjc.AppKitNSMenuIndexOfItemWithRepresentedObject(Id)

Returns the index of the first menu item in the receiver that has a given represented object.

Original signature is '- (NSInteger)indexOfItemWithRepresentedObject:(id)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithRepresentedObject(
	Id anObject
)
Public Overridable Function IndexOfItemWithRepresentedObject ( _
	anObject As Id _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithRepresentedObject(
	Id^ anObject
)
Parameters
anObject (Id)
A represented object of 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)