Visual Basic (Declaration) | |
---|---|
Public Overridable Function Clone() As Object |
C# | |
---|---|
public virtual object Clone() |
Return Value
Object as a copy of the StyleInfo objectCreates a new StyleInfo object that is a copy of the current instance.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.StyleInfo clone = new FarPoint.Win.Spread.StyleInfo(); clone.BackColor = Color.Yellow; object o = new object; o = clone.Clone(); FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo("StyleHeaders", o); fpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = si; |
Visual Basic | Copy Code |
---|---|
Dim clone As New FarPoint.Win.Spread.StyleInfo() clone.BackColor = Color.Yellow Dim o As New Object o = clone.Clone() Dim si As New FarPoint.Win.Spread.StyleInfo("StyleHeaders", o) FpSpread1.ActiveSheet.ColumnHeader.DefaultStyle = si |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2