Version

IndexOf Method (ChartTextCollection)

Provides the index of a given ChartTextAppearance, if ChartTextCollection contains it.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal item As ChartTextAppearance _
) As Integer
public int IndexOf( 
   ChartTextAppearance item
)

Parameters

item
A ChartTextAppearance object to search the collection for.

Return Value

The index at which the given ChartTextAppearance was found, or -1 if it was not found.
Remarks

This method returns the index of a matching ChartTextAppearance object reference within the collection. It does not perform a property-by-property comparison, so equivalent ChartTextAppearance objects may not be found.

IndexOf always returns -1 when Contains returns False, however when a valid index is returned it can be used to retrieve the ChartTextAppearance object using the index property of ChartTextCollection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also