public TextControl() { view = new DocumentView(new DocumentViewSurface(this)); SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ContainerControl | ControlStyles.ResizeRedraw , true); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (null != graphics) { graphics.Dispose(); graphics = null; } view = null; } }
public ViewControlTrace(DocumentView host) { this.host = host; enabled = true; }
public RenderStuff(DocumentView host) : this() { this.host = host; }