Spread ASP.NET 6.0 Product Documentation
Apply(ICollection) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > Apply Method : Apply(ICollection) Method


sheets
Array of sheets to which to apply the skin

Glossary Item Box

Applies the skin to the specified collection of sheet views.

Syntax

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

Parameters

sheets
Array of sheets to which to apply the skin

Exceptions

ExceptionDescription
System.ArgumentNullExceptionNo sheet collection specified or specified collection is null

Example

This example creates a new skin and applies it to the component.
C#Copy Code
FpSpread1.ActiveSheetView.GridLineColor = Color.Red;
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle.BackColor = Color.Red;

Dim FarPoint.Web.Spread.SheetSkin = new FarPoint.Web.Spread.SheetSkin(FpSpread1);
skin.Apply(FpSpread2.Sheets);
Visual BasicCopy Code
FpSpread1.ActiveSheetView.GridLineColor = Color.Red
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle.BackColor = Color.Red

Dim skin As New FarPoint.Web.Spread.SheetSkin(FpSpread1)
skin.Apply(FpSpread2.Sheets)

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.