MonobjcMonobjc Documented Class Library
IndexOfItemWithRepresentedObject Method (obj)
NamespacesMonobjc.AppKitNSPopUpButtonCellIndexOfItemWithRepresentedObject(Id)

Returns the index of the menu item that holds the specified represented object.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithRepresentedObject(
	Id obj
)
Public Overridable Function IndexOfItemWithRepresentedObject ( _
	obj As Id _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithRepresentedObject(
	Id^ obj
)
Parameters
obj (Id)
The represented object associated with a menu item.
Return Value
The index of the menu item that owns the specified object, or -1 if no such menu item was found.
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)