コード例 #1
0
ファイル: CsvFormat.cs プロジェクト: riyanhax/Maui
        public override IFormat Clone()
        {
            CsvFormat other = new CsvFormat(Name, Separator, Columns.ToArray());

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

            return(other);
        }
コード例 #2
0
ファイル: PathTableFormat.cs プロジェクト: riyanhax/Maui
        public override IFormat Clone()
        {
            PathTableFormat other = new PathTableFormat(Name, Path, Columns.ToArray());

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

            return(other);
        }
コード例 #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);
            }
        }