Spread ASP.NET 6.0 Product Documentation
IndexOf Method
See Also  Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyleCollection Class : IndexOf Method


style
Style (NamedStyle object) for which to search

Glossary Item Box

Returns the index of the specified style in the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IndexOf( _
   ByVal style As NamedStyle _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As NamedStyleCollection
Dim style As NamedStyle
Dim value As Integer
 
value = instance.IndexOf(style)
C# 
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.