示例#1
0
 public FormulaAxisY()
 {
     this.MajorTick.ShowLine     = true;
     this.MinorTick              = new FormulaTick();
     this.MinorTick.TickWidth    = 3;
     this.MinorTick.MinimumPixel = 10;
     this.Back                    = new FormulaBack();
     this.MultiplyBack            = new FormulaBack();
     this.MultiplyBack.BackGround = new SolidBrush(Color.Yellow);
 }
示例#2
0
        public object Clone()
        {
            FormulaBack back = new FormulaBack();

            back.BackGround = (Brush)this.BackGround.Clone();
            back.LeftPen    = (Pen)this.LeftPen.Clone();
            back.RightPen   = (Pen)this.RightPen.Clone();
            back.BottomPen  = (Pen)this.BottomPen.Clone();
            back.TopPen     = (Pen)this.TopPen.Clone();
            return(back);
        }
示例#3
0
 public void CopyFrom(FormulaAxisX fax)
 {
     this.Visible            = fax.Visible;
     this.DateFormatProvider = fax.DateFormatProvider;
     this.AutoScale          = fax.AutoScale;
     this.Format             = fax.Format;
     this.MajorTick          = (FormulaTick)fax.MajorTick.Clone();
     this.MinorTick          = (FormulaTick)fax.MinorTick.Clone();
     this.Back           = (FormulaBack)fax.Back.Clone();
     this.LabelFont      = (Font)fax.LabelFont.Clone();
     this.LabelBrush     = (Brush)fax.LabelBrush.Clone();
     this.AxisLabelAlign = fax.AxisLabelAlign;
     this.DataCycle      = fax.DataCycle;
 }
示例#4
0
 public void CopyFrom(FormulaAxisY fay)
 {
     this.Visible      = fay.Visible;
     this.AutoMultiply = fay.AutoMultiply;
     this.Width        = fay.Width;
     this.AutoScale    = fay.AutoScale;
     this.MajorTick    = (FormulaTick)fay.MajorTick.Clone();
     this.MinorTick    = (FormulaTick)fay.MinorTick.Clone();
     this.Back         = (FormulaBack)fay.Back.Clone();
     this.AutoFormat   = fay.AutoFormat;
     this.Format       = fay.Format;
     this.MultiplyBack = (FormulaBack)fay.MultiplyBack.Clone();
     this.LabelFont    = (Font)fay.LabelFont.Clone();
     this.LabelBrush   = (Brush)fay.LabelBrush.Clone();
     this.AxisPos      = fay.AxisPos;
 }