MonobjcMonobjc Documented Class Library
InsertObjectAtIndex Method (anObject, index)
NamespacesMonobjc.FoundationNSMutableArrayInsertObjectAtIndex(Id, NSUInteger)

Inserts a given object into the array's contents at a given index.

Original signature is '- (void)insertObject:(id)anObject atIndex:(NSUInteger)index'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void InsertObjectAtIndex(
	Id anObject,
	NSUInteger index
)
Public Overridable Sub InsertObjectAtIndex ( _
	anObject As Id, _
	index As NSUInteger _
)
public:
virtual void InsertObjectAtIndex(
	Id^ anObject, 
	NSUInteger index
)
Parameters
anObject (Id)
The object to add to the array's content. This value must not be nil.
index (NSUInteger)
The index in the array at which to insert anObject. This value must not be greater than the count of elements in the array.
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)