public LegendBoxSettingsWrapper(LegendBox legendBox) 
        {
            Background = new BackgroundSettingsWrapper(legendBox.Background);
            CornerBottomLeft = legendBox.CornerBottomLeft;
            CornerBottomRight = legendBox.CornerBottomRight;
            CornerSize = legendBox.CornerSize;
            CornerTopLeft = legendBox.CornerTopLeft;
            CornerTopRight = legendBox.CornerTopRight;
            DefaultCorner = legendBox.DefaultCorner;
            DefaultEntry = new LegendEntrySettingsWrapper(legendBox.DefaultEntry);
            
            // Скопируем ExtraEntries
            ExtraEntries = new LegendEntrySettingsWrapper[legendBox.ExtraEntries.Count];
            for (int i = 0; i < legendBox.ExtraEntries.Count; i++)
            {
                ExtraEntries[i] = new LegendEntrySettingsWrapper(legendBox.ExtraEntries[i]);
            }

            HeaderBackground = new BackgroundSettingsWrapper(legendBox.HeaderBackground);
            HeaderEntry = new LegendEntrySettingsWrapper(legendBox.HeaderEntry);
            HeaderLabel = new LabelSettingsWrapper(legendBox.HeaderLabel);
            IconPath = legendBox.IconPath;
            InteriorLine = new LineSettingsWrapper(legendBox.InteriorLine);
            LabelStyle = new LabelSettingsWrapper(legendBox.LabelStyle);
            Line = new LineSettingsWrapper(legendBox.Line);
            ListTopToBottom = legendBox.ListTopToBottom;
            Orientation = legendBox.Orientation;
            Padding = legendBox.Padding;
            Position = (LegendBoxPosition) legendBox.Position;
            Shadow = new ShadowSettingsWrapper(legendBox.Shadow);
            Template = legendBox.Template;
            Visible = legendBox.Visible;
        }
 public AxisTickSettingsWrapper(AxisTick tick) 
 {
     GridLine = new LineSettingsWrapper(tick.GridLine);
     IncludeInAxisScale = tick.IncludeInAxisScale;
     Label = new LabelSettingsWrapper(tick.Label);
     Line = new LineSettingsWrapper(tick.Line);
     OverrideTicks = tick.OverrideTicks;
 }
 public LegendEntrySettingsWrapper(LegendEntry legendEntry) 
 {
     Background = new BackgroundSettingsWrapper(legendEntry.Background);
     DashStyle = legendEntry.DashStyle;
     DividerLine = new LineSettingsWrapper(legendEntry.DividerLine);
     HeaderMode = legendEntry.HeaderMode;
     Hotspot = new HotspotSettingsWrapper(legendEntry.Hotspot);
     LabelStyle = new LabelSettingsWrapper(legendEntry.LabelStyle);
     Name = legendEntry.Name;
     PaddingTop = legendEntry.PaddingTop;
     SeriesType = legendEntry.SeriesType;
     ShapeType = legendEntry.ShapeType;
     SortOrder = legendEntry.SortOrder;
     ToolTip = legendEntry.ToolTip;
     URL = legendEntry.URL;
     Use3D = legendEntry.Use3D;
     Value = legendEntry.Value;
     Visible = legendEntry.Visible;
 }
Example #4
0
 public BoxSettingsWrapper(Box box) 
 {
     Background = new BackgroundSettingsWrapper(box.Background);
     CornerBottomLeft = box.CornerBottomLeft;
     CornerBottomRight = box.CornerBottomRight;
     CornerSize = box.CornerSize;
     CornerTopLeft = box.CornerTopLeft;
     CornerTopRight = box.CornerTopRight;
     DefaultCorner = box.DefaultCorner;
     HeaderBackground = new BackgroundSettingsWrapper(box.HeaderBackground);
     HeaderLabel = new LabelSettingsWrapper(box.HeaderLabel);
     IconPath = box.IconPath;
     InteriorLine = new LineSettingsWrapper(box.InteriorLine);
     Label = new LabelSettingsWrapper(box.Label);
     Line = new LineSettingsWrapper(box.Line);
     Orientation = box.Orientation;
     Padding = box.Padding;
     Position = (LegendBoxPosition) box.Position;
     Shadow = new ShadowSettingsWrapper(box.Shadow);
     Visible = box.Visible;
 }
 public SmartLabelSettingsWrapper(SmartLabel label)
 {
     Alignment = label.Alignment;
     AllowMarkerOverlap = label.AllowMarkerOverlap;
     AutoWrap = label.AutoWrap;
     Color = new ColorSettingsWrapper(label.Color);
     DistanceMaximum = label.DistanceMaximum;
     DynamicDisplay = label.DynamicDisplay;
     DynamicPosition = label.DynamicPosition;
     Font = new FontSettingsWrapper(label.Font);
     ForceVertical = label.ForceVertical;
     GlowColor = label.GlowColor;
     Hotspot = new HotspotSettingsWrapper(label.Hotspot);
     Line = new LineSettingsWrapper(label.Line);
     LineAlignment = label.LineAlignment;
     OutlineColor = label.OutlineColor;
     Padding = label.Padding;
     PieLabelMode = label.PieLabelMode;
     RadarLabelMode = label.RadarLabelMode;
     Shadow = new ShadowSettingsWrapper(label.Shadow);
     Text = label.Text;
     Truncation = new TruncationSettingsWrapper(label.Truncation);
     Type = label.Type;
 }
Example #6
0
        public AxisSettingsWrapper(Axis axis)
        {
            AlternateGridBackground = new BackgroundSettingsWrapper(axis.AlternateGridBackground);
            CenterTickMarks = axis.CenterTickMarks;
            ClearValues = axis.ClearValues;
            ClusterColumns = axis.ClusterColumns;
            CombinedElementsCalculation = axis.CombinedElementsCalculation;
            CultureName = axis.CultureName;
            DefaultTick = new AxisTickSettingsWrapper(axis.DefaultTick);
            ExtraTicks = new AxisTickSettingsWrapper[axis.ExtraTicks.Count];
            for (int i = 0; i < ExtraTicks.Length; i++)
            {
                ExtraTicks[i] = new AxisTickSettingsWrapper(axis.ExtraTicks[i]);
            }

            FormatString = axis.FormatString;
            GaugeLabelMode = axis.GaugeLabelMode;
            GaugeNeedleType = axis.GaugeNeedleType;
            GenerateElementTicks = axis.GenerateElementTicks;
            Interval = axis.Interval;
            InvertScale = axis.InvertScale;
            Label = new LabelSettingsWrapper(axis.Label);
            LabelRotate = axis.LabelRotate;
            Line = new LineSettingsWrapper(axis.Line);
            LogarithmicBase = axis.LogarithmicBase;
            Maximum = axis.Maximum;//
            Minimum = axis.Minimum;
            MinimumInterval = axis.MinimumInterval;
            MinorInterval = axis.MinorInterval;
            MinorTicksPerInterval = axis.MinorTicksPerInterval;
            MinorTimeIntervalAdvanced = new TimeIntervalAdvancedSettingsWrapper(axis.MinorTimeIntervalAdvanced);
            Name = axis.Name;
            NumberPercision = axis.NumberPercision;
            NumberPrecision = axis.NumberPrecision;
            Orientation = axis.Orientation;
            OrientationAngle = axis.OrientationAngle;
            OverlappingCircularLabelSeparator = axis.OverlappingCircularLabelSeparator;
            Percent = axis.Percent;
            Position = axis.Position;
            RadarMode = axis.RadarMode;
            RangeAngle = axis.RangeAngle;
            ReverseSeries = axis.ReverseSeries;
            ReverseSeriesPositions = axis.ReverseSeriesPositions;
            ReverseStack = axis.ReverseStack;
            Scale = axis.Scale;
            ScaleBreaks = new ScaleRangeSettingsWrapper[axis.ScaleBreaks.Count];
            for (int i = 0; i < ScaleBreaks.Length; i++)
            {
                ScaleBreaks[i] = new ScaleRangeSettingsWrapper(axis.ScaleBreaks[i]);
            }
            ScaleBreakStyle = axis.ScaleBreakStyle;
            ScaleRange = new ScaleRangeSettingsWrapper(axis.ScaleRange);
            ShowGrid = axis.ShowGrid;
            SmartMinorTicks = axis.SmartMinorTicks;
            SmartScaleBreak = axis.SmartScaleBreak;
            SmartScaleBreakLimit = axis.SmartScaleBreakLimit;
            SpacingPercentage = axis.SpacingPercentage;
            StaticColumnWidth = axis.StaticColumnWidth;
            SweepAngle = axis.SweepAngle;
            TickLabelAngle = axis.TickLabelAngle;
            TickLabelMode = axis.TickLabelMode;
            TickLabelPadding = axis.TickLabelPadding;
            TickLabelSeparatorLine = new LineSettingsWrapper(axis.TickLabelSeparatorLine);
            TickLine = new LineSettingsWrapper(axis.TickLine);
            TickNumberMaximum = axis.TickNumberMaximum;
            TimeInterval = (int)axis.TimeInterval;
            TimeIntervalAdvanced = new TimeIntervalAdvancedSettingsWrapper(axis.TimeIntervalAdvanced);
            TimePadding = axis.TimePadding;
            TimeScaleLabels = new TimeScaleLabelInfoSettingsWrapper(axis.TimeScaleLabels);
            ZeroLine = new LineSettingsWrapper(axis.ZeroLine);
            ZeroTick = new AxisTickSettingsWrapper(axis.ZeroTick);
        }