MonobjcMonobjc Documented Class Library
IndexOfObject Method (anObject)
NamespacesMonobjc.FoundationNSArrayIndexOfObject(Id)

Returns the lowest index whose corresponding array value is equal to a given object.

Original signature is '- (NSUInteger)indexOfObject:(id)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger IndexOfObject(
	Id anObject
)
Public Overridable Function IndexOfObject ( _
	anObject As Id _
) As NSUInteger
public:
virtual NSUInteger IndexOfObject(
	Id^ anObject
)
Parameters
anObject (Id)
An object.
Return Value
The lowest index whose corresponding array value is equal to anObject. If none of the objects in the array is equal to anObject, 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.Foundation (Module: Monobjc.Foundation)