Spread for ASP.NET 7.0 Product Documentation
GetAt Method
See Also  Example Support Options
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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.