'Declaration Public Function IndexOf( _ ByVal item As ChartTextAppearance _ ) As Integer
public int IndexOf( ChartTextAppearance item )
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.
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