Spread for ASP.NET 7.0 Product Documentation
Apply(FpSpread) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > Apply Method : Apply(FpSpread) Method


spread
Spread component to which to apply the skin

Glossary Item Box

Applies the skin to the active sheet view in Spread.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Apply( _
   ByVal spread As FpSpread _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetSkin
Dim spread As FpSpread
 
instance.Apply(spread)
C# 
public void Apply( 
   FpSpread spread
)

Parameters

spread
Spread component to which to apply the skin

Example

This example applies the skin to the spreadsheet.
C#Copy Code
FarPoint.Web.Spread.SheetView sv = new FarPoint.Web.Spread.SheetView();
sv.BackColor = Color.Red;
sv.ColumnHeader.DefaultStyle.BackColor = Color.Yellow;

FarPoint.Web.Spread.SheetSkin sk = new FarPoint.Web.Spread.SheetSkin(sv);
sk.Apply(FpSpread1); 
Visual BasicCopy Code
Dim sv As New FarPoint.Web.Spread.SheetView
sv.BackColor = Color.Red
sv.ColumnHeader.DefaultStyle.BackColor = Color.Yellow

Dim sk As New FarPoint.Web.Spread.SheetSkin(sv)
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.