コード例 #1
0
ファイル: AbstractSeriesFormat.cs プロジェクト: bg0jr/Maui
        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 );
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #4
0
ファイル: AbstractSeriesFormat.cs プロジェクト: bg0jr/Maui
        /// <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 );
            }
        }