Web API Reference MapGuide Open Source
virtual INT32 MgPropertyCollection::IndexOf ( CREFSTRING  name  )  const [virtual]

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

.NET Syntax
virtual int IndexOf(string name) const;
Java Syntax
virtual int IndexOf(String name) const;
PHP Syntax
virtual int IndexOf(string name) const;

Parameters:
name (String/string) Input the item name
Returns:
Returns the index of the specified item in the collection or -1 if the item does not exist.


Comments or suggestions? Send us feedback.