Spread for ASP.NET 11 Product Documentation
Apply(SheetView) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetSkin Class > Apply Method : Apply(SheetView) Method
Sheet to which to apply the skin
Applies the skin to the specified sheet view.
Syntax
'Declaration
 
Public Overloads Overridable Sub Apply( _
   ByVal sheet As SheetView _
) 
'Usage
 
Dim instance As SheetSkin
Dim sheet As SheetView
 
instance.Apply(sheet)
public virtual void Apply( 
   SheetView sheet
)

Parameters

sheet
Sheet to which to apply the skin
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.ActiveSheetView);
FpSpread1.ActiveSheetView.GridLineColor = Color.Red
FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle.BackColor = Color.Red

Dim skin As New FarPoint.Web.Spread.SheetSkin(FpSpread1)
skin.Apply(FpSpread2.ActiveSheetView)
See Also

Reference

SheetSkin Class
SheetSkin Members
Overload List