MonobjcMonobjc Documented Class Library
IndexOfObjectIdenticalToInRange Method (anObject, range)
NamespacesMonobjc.FoundationNSArrayIndexOfObjectIdenticalToInRange(Id, NSRange)

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

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger IndexOfObjectIdenticalToInRange(
	Id anObject,
	NSRange range
)
Public Overridable Function IndexOfObjectIdenticalToInRange ( _
	anObject As Id, _
	range As NSRange _
) As NSUInteger
public:
virtual NSUInteger IndexOfObjectIdenticalToInRange(
	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 identical to anObject. If none of the objects within range is identical 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)