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 ChartAreaSettingsWrapper(ChartArea area) { Background = new BackgroundSettingsWrapper(area.Background); CornerBottomLeft = area.CornerBottomLeft; CornerBottomRight = area.CornerBottomRight; CornerSize = area.CornerSize; CornerTopLeft = area.CornerTopLeft; CornerTopRight = area.CornerTopRight; DefaultCorner = area.DefaultCorner; Label = new LabelSettingsWrapper(area.Label); LegendBox = new LegendBoxSettingsWrapper(area.LegendBox); Shadow = new ShadowSettingsWrapper(area.Shadow); Title = area.Title; TitleBox = new BoxSettingsWrapper(area.TitleBox); XAxis = new AxisSettingsWrapper(area.XAxis); YAxis = new AxisSettingsWrapper(area.YAxis); }
public ChartSettingsWrapper(CustomChart chart) { ClipGauges = chart.ClipGauges; Depth = chart.Depth; ExplodedSliceAmount = chart.ExplodedSliceAmount; GaugeType = chart.DefaultSeries.GaugeType; PaletteName = chart.PaletteName; PieLabelMode = chart.PieLabelMode; SeriesType = (SeriesType)chart.DefaultSeries.Type; ShadingEffectMode = chart.ShadingEffectMode; GraphLineWidth = chart.DefaultSeries.Line.Width; Use3D = chart.Use3D; ChartArea = new ChartAreaSettingsWrapper(chart.ChartArea); Background = new BackgroundSettingsWrapper(chart.Background); DefaultElement = new DefaultElementSettingsWrapper(chart.ChartArea.DefaultElement); }
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; }
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 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); }