Spread for ASP.NET 8.0 Product Documentation
Clone Method (StyleInfo)
Example 


Creates a new object that is a copy of the current instance (with the same style settings).
Syntax
'Declaration
 
Public Overridable Function Clone() As Object
'Usage
 
Dim instance As StyleInfo
Dim value As Object
 
value = instance.Clone()
public virtual object Clone()

Return Value

Object containing a copy of the StyleInfo object
Example
This example creates two StyleInfo objects and the second instance is a clone of the first. The second instance is then assigned to the active sheet.
FarPoint.Web.Spread.StyleInfo info = new FarPoint.Web.Spread.StyleInfo();
FarPoint.Web.Spread.StyleInfo cinfo = new FarPoint.Web.Spread.StyleInfo();
FarPoint.Web.Spread.Border bord = new FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 3);
info.Border = bord; 
info.CellType = new FarPoint.Web.Spread.LabelCellType();
cinfo = (FarPoint.Web.Spread.StyleInfo) info.Clone();
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, cinfo); 
Dim info As New FarPoint.Web.Spread.StyleInfo()
Dim cinfo As New FarPoint.Web.Spread.StyleInfo()
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Double, Color.Red, 3)
info.Border = bord
info.CellType = New FarPoint.Web.Spread.LabelCellType()
cinfo = info.Clone() 
FpSpread1.ActiveSheetView.SetStyleInfo(0, 0, cinfo) 
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

Reference

StyleInfo Class
StyleInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.