Property | Description | |||
Method Name | Item | |||
Argument - index | The 0 based index of the item to get | |||
Returns | The object at the given index | |||
Description | Gets a given object from the collection | |||
Remarks | If the index is out of range an exception is raised. A more efficent way to iterate through collection is to use the iterator - see iterator, begin, end |
|||
Example | for (int i = 0; i < root->GetInvoices()->GetCount(); i++) { printf("Item %d in the collection is invoice number %d\n", i, root->GetInvoices()->Item(i)->GetInvoiceNumber()); } |