MonobjcMonobjc Documented Class Library
IndexOfObjectInRange Method (anObject, range)
NamespacesMonobjc.FoundationNSArrayIndexOfObjectInRange(Id, NSRange)

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

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

Available in Mac OS X v10.0 and later.

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