예제 #1
0
        public VerticalLine()
        {
            _colors  = new LineColors();
            _linePen = PenCreator.Create(_colors.LineColor, 1);

            DoubleBuffered = true;
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            Start      = new Point(1, 0);
            LineWeight = 1;
        }
예제 #2
0
        public HorizontalLine()
        {
            _lineColors = new LineColors();
            _linePen    = PenCreator.Create(_lineColors.LineColor, 1f);

            DoubleBuffered = true;
            SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, true);

            start      = new Point(0, 1);
            LineWeight = 1;
        }