Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Add
Clear
Contains
GetCount
GetItem
IndexOf
Insert
MgFeatureCommandCollection
Remove
RemoveAt
SetItem
void MgFeatureCommandCollection::Insert | ( | INT32 | index,
|  | MgFeatureCommand * | command |
| ) |  |  |
Inserts the specified command at the specified index within the collection. Items following the insertion point are moved down to accommodate the new command. .NET Syntax
`void Insert(int index, MgFeatureCommand command);`
Java Syntax
`void Insert(int index, MgFeatureCommand command);`
PHP Syntax
`void Insert(int index, MgFeatureCommand command);`
  Parameters:
  | index | (int) Input index
  | command | (MgFeatureCommand) Input command
  Returns: Returns nothing Exceptions:
  | MgIndexOutOfRangeException | if index is out of range.

Comments or suggestions? Send us feedback.