Пример #1
0
        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;
        }
Пример #2
0
 public LabelSettingsWrapper(Label label) 
 {
     Alignment = label.Alignment;
     AutoWrap = label.AutoWrap;
     Color = new ColorSettingsWrapper(label.Color);
     Font = new FontSettingsWrapper(label.Font);
     GlowColor = label.GlowColor;
     Hotspot = new HotspotSettingsWrapper(label.Hotspot);
     LineAlignment = label.LineAlignment;
     OutlineColor = label.OutlineColor;
     Shadow = new ShadowSettingsWrapper(label.Shadow);
     Text = label.Text;
     Truncation = new TruncationSettingsWrapper(label.Truncation);
     Type = label.Type;
 }
Пример #3
0
 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);
 }
Пример #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;
 }