Xceed Grid for WinForms v4.3 Documentation
IndexOf Method (GradientStopList)


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GradientStopList Class : IndexOf Method
A reference to the GradientStop to locate.
Searches for the specified GradientStop object and returns the zero-based index of the occurrence within the collection.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal gradientStop As GradientStop _
) As Integer
'Usage
 
Dim instance As GradientStopList
Dim gradientStop As GradientStop
Dim value As Integer
 
value = instance.IndexOf(gradientStop)
public int IndexOf( 
   GradientStop gradientStop
)

Parameters

gradientStop
A reference to the GradientStop to locate.

Return Value

The zero-based index of the first occurrence of gradientStop within the entire list, if found; otherwise, returns -1.
Requirements

Target Platforms: 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

Reference

GradientStopList Class
GradientStopList Members