MonobjcMonobjc Documented Class Library
InsertChildAtIndex Method (child, index)
NamespacesMonobjc.FoundationNSXMLDocumentInsertChildAtIndex(NSXMLNode, NSUInteger)

Inserts a node object at specified position in the receiver’s array of children.

Original signature is '- (void)insertChild:(NSXMLNode *)child atIndex:(NSUInteger)index'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void InsertChildAtIndex(
	NSXMLNode child,
	NSUInteger index
)
Public Overridable Sub InsertChildAtIndex ( _
	child As NSXMLNode, _
	index As NSUInteger _
)
public:
virtual void InsertChildAtIndex(
	NSXMLNode^ child, 
	NSUInteger index
)
Parameters
child (NSXMLNode)
The NSXMLNode object to be inserted. The added node must be an NSXMLNode object representing a comment, processing instruction, or the root element.
index (NSUInteger)
An integer specifying the index of the children array to insert child. The indexes of children after the new child are incremented. If index is less than zero or greater than the number of children, an out-of-bounds exception is raised.
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)