Spread for ASP.NET 10 Product Documentation
Apply(ICollection) Method
Example 


Array of sheets to which to apply the skin
Applies the skin to the specified collection of sheet views.
Syntax
'Declaration
 
Public Overloads Sub Apply( _
   ByVal sheets As ICollection _
) 
'Usage
 
Dim instance As SheetSkin
Dim sheets As ICollection
 
instance.Apply(sheets)
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.
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);
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 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.