MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
INT32 MgWebCommandCollection::IndexOf ( CREFSTRING  name)

Returns the index of the specified item in the collection or -1 if the item does not exist.

Parameters:
nameName of the item
Returns:
index if the collection contains the specified item, -1 otherwise