FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > StyleInfo Class > Merge Method : Merge(StyleInfo,Boolean) Method |
'Declaration Public Overloads Overridable Sub Merge( _ ByVal source As StyleInfo, _ ByVal force As Boolean _ )
This method gives you the option to overwrite existing settings in the current object. If you set the force parameter to true, settings from the merge object overwrite settings in the current object. Set the force parameter to false if you do not want to overwrite settings in the current object. Set to true to overwrite the current settings.
If you do not need to overwrite the existing settings in the current object, you might want to use the Merge(StyleInfo) method.
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo(); si.VisualStyles = true; FarPoint.Win.Spread.StyleInfo merge = new FarPoint.Win.Spread.StyleInfo(); merge.BackColor = Color.Red; fpSpread1.ActiveSheet.DefaultStyle = si; si.Merge(merge, true);
Dim si As New FarPoint.Win.Spread.StyleInfo si.VisualStyles = True Dim merge As New FarPoint.Win.Spread.StyleInfo merge.BackColor = Color.Red FpSpread1.ActiveSheet.DefaultStyle = si si.Merge(merge, True)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8