Exemple #1
0
        public override IFormat Clone()
        {
            CsvFormat other = new CsvFormat(Name, Separator, Columns.ToArray());

            other.SkipRows    = SkipRows.ToArray();
            other.SkipColumns = SkipColumns.ToArray();

            return(other);
        }
Exemple #2
0
        public override IFormat Clone()
        {
            PathTableFormat other = new PathTableFormat(Name, Path, Columns.ToArray());

            other.SkipRows    = SkipRows.ToArray();
            other.SkipColumns = SkipColumns.ToArray();

            return(other);
        }
Exemple #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);
            }
        }