예제 #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            if (Services == null)
            {
                Debug.Print("TextView.OnPaint: Services property must be set");
                return;
            }
            GetStyleStack().PushStyle(StyleClass);
            var painter = new TextViewPainter(layout, e.Graphics, ForeColor, BackColor, Font, styleStack);

            painter.SetSelection(GetStartSelection(), GetEndSelection());

            painter.PaintGdi();
            GetStyleStack().PopStyle();
        }
예제 #2
0
파일: TextView.cs 프로젝트: relaxar/reko
        protected override void OnPaint(PaintEventArgs e)
        {
            if (Services == null)
            {
                Debug.Print("TextView.OnPaint: Services property must be set");
                return;
            }
            GetStyleStack().PushStyle(StyleClass);
            var painter = new TextViewPainter(layout, e.Graphics, ForeColor, BackColor, Font, styleStack);
            painter.SetSelection(GetStartSelection(), GetEndSelection());

            painter.PaintGdi();
            GetStyleStack().PopStyle();
        }