Spread Windows Forms 10.0 Product Documentation
ActiveSkin Property
Example 


Gets or sets the skin for the sheet.
Syntax
'Declaration
 
Public Property ActiveSkin As SheetSkin
'Usage
 
Dim instance As SheetView
Dim value As SheetSkin
 
instance.ActiveSkin = value
 
value = instance.ActiveSkin
public SheetSkin ActiveSkin {get; set;}

Property Value

SheetSkin object containing the sheet skin
Example
This example illustrates the use of this member by returning the active skin for the sheet.
FarPoint.Win.Spread.SheetSkin sk, sk1;
sk = new FarPoint.Win.Spread.SheetSkin("TestSkin", Color.LightBlue, Color.Blue, Color.White, Color.Gray, FarPoint.Win.Spread.GridLines.Both,
Color.Red, Color.Black, Color.Orange, Color.Black, Color.Empty, Color.Empty, true, true, true, true, true);
sk.Apply(fpSpread1);
sk1 = fpSpread1.ActiveSheet.ActiveSkin;
label1.Text = "The name of the active skin is - " + sk1.Name.ToString();
Dim sk, sk1 As FarPoint.Win.Spread.SheetSkin
sk = New FarPoint.Win.Spread.SheetSkin("TestSkin", Color.LightBlue, Color.Blue, Color.White, Color.Gray, FarPoint.Win.Spread.GridLines.Both,
Color.Red, Color.Black, Color.Orange, Color.Black, Nothing, Nothing, True, True, True, True, True)
sk.Apply(FpSpread1)
sk1 = FpSpread1.ActiveSheet.ActiveSkin
Label1.Text = "The name of the active skin is - " & sk1.Name.ToString()
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
SheetSkin Class
DefaultSkins Class

User-Task Documentation

Applying a Skin to a Sheet

 

 


Copyright © GrapeCity, inc. All rights reserved.