Example3_4.DrawingView.Initialize C# (CSharp) Method

Initialize() private method

private Initialize ( ) : void
return void
        void Initialize()
        {
            this.AutoresizingMask = NSViewResizingMask.HeightSizable | NSViewResizingMask.WidthSizable;
            BackColor = Color.Wheat;
            // Set Form1 size:
            //			this.Width = 350;
            //			this.Height = 300;
            dc = new DataCollection();
            cs = new ChartStyle(this);
            cs.XLimMin = 0f;
            cs.XLimMax = 6f;
            cs.YLimMin = -1.5f;
            cs.YLimMax = 1.5f;
            cs.XTick = 1f;
            cs.YTick = 0.5f;
            cs.TickFont = new Font("Arial", 10, FontStyle.Regular);
            cs.XLabel = "X Axis";
            cs.YLabel = "Y Axis";
            cs.LabelFont = new Font("Arial", 10, FontStyle.Regular | FontStyle.Underline);
            cs.Title = "Sine & Cosine Plot";
            cs.TitleFont = new Font("Arial", 12, FontStyle.Regular);
            lg = new Legend();
            lg.IsLegendVisible = true;
        }