FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > NamedStyle Class : CopyFrom Method |
'Usage Dim instance As NamedStyle Dim obj As Object instance.CopyFrom(obj)
FarPoint.Web.Spread.StyleInfo si = new FarPoint.Web.Spread.StyleInfo(); si.BackColor = Color.Yellow; si.Font.Bold = true; FarPoint.Web.Spread.NamedStyle parent = new FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeadersDefault"); parent.CopyFrom(si); FpSpread1.NamedStyles.Add(parent); FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent; FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent;
Dim si As New FarPoint.Web.Spread.StyleInfo() si.BackColor = Color.Yellow si.Font.Bold = True Dim parent As New FarPoint.Web.Spread.NamedStyle("StyleHeaders", "HeaderDefault") parent.CopyFrom(si) FpSpread1.NamedStyles.Add(parent) FpSpread1.ActiveSheetView.ColumnHeader.DefaultStyle = parent FpSpread1.ActiveSheetView.RowHeader.DefaultStyle = parent
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional