public Axis() { TextStyle textStyle = new TextStyle(); textStyle.Font = new Font("Arial", 10f); textStyle.Foreground = new SolidBrush(Color.Black); textStyle.HorizontalAlignment = HorizontalAlignment.Center; textStyle.VerticalAlignment = VerticalAlignment.Center; this.LabelStyle = textStyle; textStyle.Font = new Font("Arial", 12f); textStyle.Foreground = new SolidBrush(Color.Black); textStyle.HorizontalAlignment = HorizontalAlignment.Center; textStyle.VerticalAlignment = VerticalAlignment.Center; this.HeaderStyle = textStyle; this.Header = ""; this.MajorLineSize = 10f; this.MinorLineSize = 5f; this.ShowMajorCrossLines = true; this.ShowMinorCrossLines = true; this.MinorTicksCount = 0; this.MajorLinePen=new Pen(Color.Black,0.75f); this.MinorLinePen=new Pen(Color.Black,0.5f); this.AxisLinePen=new Pen(Color.Black,1.0f); }
private void SetDefaultValues() { this.Series=new SeriesCollection(); this.Theme=Theme.Metro; this.Axes=new Axes(); this.Axes.CollectionChanged += OnAxesCollectionChanged; this.SmoothingMode = SmoothingMode.HighQuality; this.CompositingMode=CompositingMode.SourceOver; this.CompositingQuality=CompositingQuality.HighQuality; this.Brushes=new List<Brush>(); this.XAxis=new CategoryXAxis(); this.YAxis = new LinearYAxis(); this.BorderBrush=new SolidBrush(Color.Black); this.BorderThickness = 1.0f; this.ContainerBorderPen = new Pen(Color.Black, 0f); TextStyle textStyle=new TextStyle(); textStyle.Font = new Font("Arial",16f); textStyle.Foreground=new SolidBrush(Color.Black); textStyle.HorizontalAlignment=HorizontalAlignment.Center; textStyle.VerticalAlignment=VerticalAlignment.Center; this.TitleStyle=textStyle; this.TitleMargin = 5f; }