/// <summary> /// The Copy Constructor /// </summary> /// <param name="rhs">The XAxis object from which to copy</param> public Legend(Legend rhs) { rect = rhs.Rect; location = rhs.Location; isFramed = rhs.isFramed; isFilled = rhs.isFilled; isHStack = rhs.IsHStack; isVisible = rhs.IsVisible; fillColor = rhs.FillColor; frameColor = rhs.FrameColor; frameWidth = rhs.FrameWidth; fontSpec = new FontSpecs(rhs.FontSpec); }
/// <summary> /// Default constructor that sets all <see cref="Legend"/> properties to default /// values as defined in the <see cref="Def"/> class. /// </summary> public Legend() { this.location = Defaults.Legend.Location; this.isFramed = Defaults.Legend.IsFramed; this.frameColor = Defaults.Legend.FrameColor; this.frameWidth = Defaults.Legend.FrameWidth; this.isFilled = Defaults.Legend.IsFilled; this.fillColor = Defaults.Legend.FillColor; this.isHStack = Defaults.Legend.HStack; this.isVisible = Defaults.Legend.IsVisible; this.fontSpec = new FontSpecs(Defaults.Legend.FontFamily, Defaults.Legend.FontSize, Defaults.Legend.FontColor, Defaults.Legend.FontBold, Defaults.Legend.FontItalic, Defaults.Legend.FontUnderline); this.fontSpec.IsFilled = false; this.fontSpec.IsFramed = false; }