MonobjcMonobjc Documented Class Library
IndexOfItemWithObjectValue Method (anObject)
NamespacesMonobjc.AppKitNSComboBoxCellIndexOfItemWithObjectValue(Id)

Searches the receiver’s internal item list for the given object and returns the matching index number.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IndexOfItemWithObjectValue(
	Id anObject
)
Public Overridable Function IndexOfItemWithObjectValue ( _
	anObject As Id _
) As NSInteger
public:
virtual NSInteger IndexOfItemWithObjectValue(
	Id^ anObject
)
Parameters
anObject (Id)
The object for which to return the index.
Return Value
The lowest index whose corresponding value is equal to anObject. Objects are considered equal if they have the same id or if isEqual: returns YES. If none of the objects in the receiver’s internal item list is equal to anObject, indexOfItemWithObjectValue: returns NSNotFound.
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)