Пример #1
0
        public TextControl()
        {
            view = new DocumentView(new DocumentViewSurface(this));

            SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ContainerControl |
                ControlStyles.ResizeRedraw
                , true);
        }
Пример #2
0
        public TextControl()
        {
            view = new DocumentView(new DocumentViewSurface(this));

            SetStyle(
                ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.ContainerControl |
                ControlStyles.ResizeRedraw 
                , true);
        }
Пример #3
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (null != graphics)
         {
             graphics.Dispose();
             graphics = null;
         }
         view = null;
     }
 }
Пример #4
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (null != graphics)
         {
             graphics.Dispose();
             graphics = null;
         }
         view = null;
     }
 }
Пример #5
0
 public ViewControlTrace(DocumentView host)
 {
     this.host = host;
     enabled = true;
 }
 public RenderStuff(DocumentView host)
     : this()
 {
     this.host = host;
 }
Пример #7
0
 public RenderStuff(DocumentView host)
     : this()
 {
     this.host = host;
 }
Пример #8
0
 public ViewControlTrace(DocumentView host)
 {
     this.host = host;
     enabled   = true;
 }