Beispiel #1
0
        public override StyleBase Clone()
        {
            LegendStyle style = new LegendStyle();

            style.BorderColor = this.BorderColor;
            style.LabelColor  = this.LabelColor;
            style.TitleColor  = this.TitleColor;

            return(style);
        }
Beispiel #2
0
        public LegendTheme()
        {
            LegendStyle light = new LegendStyle {
                BorderColor = Color.FromArgb(175, 175, 175), LabelColor = Color.Black, TitleColor = Color.Black
            };
            LegendStyle dark = new LegendStyle {
                BorderColor = Color.White, LabelColor = Color.White, TitleColor = Color.White
            };

            AddStyle(eThemeMode.Light, light);
            AddStyle(eThemeMode.Dark, dark);
        }