Ejemplo n.º 1
0
        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 );
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        /// <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);
            }
        }
Ejemplo n.º 4
0
        /// <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 );
            }
        }