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


skin
Name of skin for which to return the index

Glossary Item Box

Returns the index of the specified built-in skin.

Syntax

Visual Basic (Declaration) 
Public Shared Function IndexOf( _
   ByVal skin As SheetSkin _
) As Integer
Visual Basic (Usage)Copy Code
Dim skin As SheetSkin
Dim value As Integer
 
value = DefaultSkins.IndexOf(skin)
C# 
public static int IndexOf( 
   SheetSkin skin
)

Parameters

skin
Name of skin for which to return the index

Return Value

Integer representing the zero-based index of the skin in the collection

Example

This example gets the specified skin in the collection from the specified index.
C#Copy Code
FarPoint.Web.Spread.DefaultSkins ds = new FarPoint.Web.Spread.DefaultSkins();
int i;
i = ds.IndexOf(ds.GetAt(2));
TextBox1.Text = i.ToString();
Visual BasicCopy Code
Dim ds As New FarPoint.Web.Spread.DefaultSkins
Dim i As Integer
i = ds.IndexOf(ds.GetAt(2))
TextBox1.Text = i.ToString()

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.