Retrieves the index of an item in a collection by name, or -1 if not found.
Get chart area index by name
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- name
-
The name of the item in the collection for which an index will be returned.
Name of the chart area.
Return Value
An integer value that represents the index of the item in the collection (0-based).
Index of the chart area or -1 if it does not exist.
If the item is not found then negative one (-1) will be returned.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family