IndexOf Method (IPointList2 interface)

                  

 

Returns the current list index of the specified item.

 

Syntax

object.IndexOf item

 

The IndexOf method syntax has these parts:

Part

Description

object

An object expression that evaluates to a IPointList2 interface.

item

A VARIANT . This is described under Remarks below.

 

Remarks

This call returns the index of the specified item ranging from 1 to listsize. The returned index reflects the current sort order so it becomes invalid if the order is changed.

 

The item argument can be any of the following VARIANT types:

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error Description
pseNAMENOTFOUND Item not found in the list.
DISP_E_TYPEMISMATCH Unsupported input VARIANT type

Enabling Operational Intelligence