protected AbstractSeriesFormat( AbstractSeriesFormat format, params TransformAction[] rules ) : base(format, rules) { Expand = rules.ApplyTo<CellDimension>( () => format.Expand ); SeriesNamePosition = rules.ApplyTo<int>( () => format.SeriesNamePosition ); TimeAxisPosition = rules.ApplyTo<int>( () => format.TimeAxisPosition ); ValueFormat = rules.ApplyTo<FormatColumn>( () => format.ValueFormat ); TimeAxisFormat = rules.ApplyTo<FormatColumn>( () => format.TimeAxisFormat ); }
protected AbstractSeriesFormat(AbstractSeriesFormat format, params TransformAction[] rules) : base(format, rules) { Expand = rules.ApplyTo <CellDimension>(() => format.Expand); SeriesNamePosition = rules.ApplyTo <int>(() => format.SeriesNamePosition); TimeAxisPosition = rules.ApplyTo <int>(() => format.TimeAxisPosition); ValueFormat = rules.ApplyTo <FormatColumn>(() => format.ValueFormat); TimeAxisFormat = rules.ApplyTo <FormatColumn>(() => format.TimeAxisFormat); }
/// <summary> /// Creates a deep copy of the given object. /// </summary> protected void CloneTo(AbstractSeriesFormat other) { other.Expand = Expand; other.SeriesNamePosition = SeriesNamePosition; other.TimeAxisPosition = TimeAxisPosition; if (SkipRows != null) { other.SkipRows = SkipRows.ToArray(); } if (SkipColumns != null) { other.SkipColumns = SkipColumns.ToArray(); } if (ValueFormat != null) { other.ValueFormat = new FormatColumn(ValueFormat); } if (TimeAxisFormat != null) { other.TimeAxisFormat = new FormatColumn(TimeAxisFormat); } }
/// <summary> /// Creates a deep copy of the given object. /// </summary> protected void CloneTo( AbstractSeriesFormat other ) { other.Expand = Expand; other.SeriesNamePosition = SeriesNamePosition; other.TimeAxisPosition = TimeAxisPosition; if ( SkipRows != null ) { other.SkipRows = SkipRows.ToArray(); } if ( SkipColumns != null ) { other.SkipColumns = SkipColumns.ToArray(); } if ( ValueFormat != null ) { other.ValueFormat = new FormatColumn( ValueFormat ); } if ( TimeAxisFormat != null ) { other.TimeAxisFormat = new FormatColumn( TimeAxisFormat ); } }