Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / DefaultStyleCollection Class / IndexOf Method
Style (NamedStyle object) for which to search
Example


In This Topic
    IndexOf Method (DefaultStyleCollection)
    In This Topic
    Returns the index of the specified NamedStyle object.
    Syntax
    'Declaration
     
    
    Public Function IndexOf( _
       ByVal style As NamedStyle _
    ) As Integer
    'Usage
     
    
    Dim instance As DefaultStyleCollection
    Dim style As NamedStyle
    Dim value As Integer
     
    value = instance.IndexOf(style)
    public int IndexOf( 
       NamedStyle style
    )

    Parameters

    style
    Style (NamedStyle object) for which to search

    Return Value

    Index of the object in the collection, or -1 if the object was not found
    Remarks
    This method returns the index of the style (NamedStyle object) in the collection of styles.
    Example
    See Also