Spread ASP.NET 6.0 Product Documentation
ActiveSkin Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ActiveSkin Property


Glossary Item Box

Gets or sets the current active skin.

Syntax

Visual Basic (Declaration) 
Public Property ActiveSkin As SheetSkin
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As SheetSkin
 
instance.ActiveSkin = value
 
value = instance.ActiveSkin
C# 
public SheetSkin ActiveSkin {get; set;}

Property Value

SheetSkin object containing the skin

Remarks

This property is available at run time only.

The skin defines the appearance of the sheet. For more information on applying built-in skins or creating your own, refer to Applying a Skin to a Sheet and Creating a Custom Skin.

Example

This example assigns the Classic2 skin to the sheet.
C#Copy Code
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();
FarPoint.Web.Spread.DefaultSkins sk = new FarPoint.Web.Spread.DefaultSkins();
sv.ActiveSkin = sk.Classic2;
FpSpread1.Sheets.Add(sv);
Visual BasicCopy Code
If IsPostBack Then
Return
End If
Dim sv As New FarPoint.Web.Spread.SheetView
Dim sk As New FarPoint.Web.Spread.DefaultSkins
sv.ActiveSkin = sk.Classic2
FpSpread1.Sheets.Add(sv)

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.