AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual INT32 MgPropertyDefinitionCollection::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