Spread for ASP.NET 11 Product Documentation
GetAt Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultSkins Class : GetAt Method
Zero-based index in array that specifies the location of the SheetSkin object
Gets the built-in skin at the specified index.
Syntax
'Declaration
 
Public Shared Function GetAt( _
   ByVal index As Integer _
) As SheetSkin
'Usage
 
Dim index As Integer
Dim value As SheetSkin
 
value = DefaultSkins.GetAt(index)
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
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.
FarPoint.Web.Spread.DefaultSkins ds = new FarPoint.Web.Spread.DefaultSkins();
FarPoint.Web.Spread.SheetSkin sk;
sk = ds.GetAt(2);
sk.Apply(FpSpread1);
Dim ds As New FarPoint.Web.Spread.DefaultSkins
Dim sk As FarPoint.Web.Spread.SheetSkin
sk = ds.GetAt(2)
sk.Apply(FpSpread1)
See Also

Reference

DefaultSkins Class
DefaultSkins Members