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


index
Zero-based index in array that specifies the location of the SheetSkin object

Glossary Item Box

Gets the built-in skin at the specified index.

Syntax

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

Parameters

index
Zero-based index in array that specifies the location of the SheetSkin object

Return Value

SheetSkin object containing the skin in the collection with the specified name, or null if no skin is found

Exceptions

ExceptionDescription
System.IndexOutOfRangeException Specified index is out of range; must be between zero and the total number of built-in (default) skins

Example

This example gets the specified skin in the collection from the specified index and applies it to the sheet.
C#Copy Code
FarPoint.Web.Spread.DefaultSkins ds = new FarPoint.Web.Spread.DefaultSkins();
FarPoint.Web.Spread.SheetSkin sk;
sk = ds.GetAt(2);
sk.Apply(FpSpread1);
Visual BasicCopy Code
Dim ds As New FarPoint.Web.Spread.DefaultSkins
Dim sk As FarPoint.Web.Spread.SheetSkin
sk = ds.GetAt(2)
sk.Apply(FpSpread1)

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.