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

Searches the receiver’s internal item list for the specified object and returns the lowest matching index.

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 in the internal item list whose corresponding value is equal to that of the specified object. 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 are 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)