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


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

    Parameters

    style
    Style (NamedStyle object) for which to search

    Return Value

    Integer index of the style in the collection or -1 if the style was not found
    Example
    This example illustrates the use of this member by returning the index of one of the named styles in the collection.
    See Also