Spread Windows Forms 6.0 Product Documentation
ActiveSkin Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : ActiveSkin Property


Glossary Item Box

Gets or sets the skin for the sheet.

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 sheet skin

Example

This example illustrates the use of this member by returning the active skin for the sheet.
C#Copy Code
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();
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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