/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } if (this.ttf != null) { this.ttf.Dispose(); this.ttf = null; } base.Dispose(disposing); }
public NodeTextView() { this.SetStyle(ControlStyles.ResizeRedraw,true); this.SetStyle(ControlStyles.UserPaint,true); this.SetStyle(ControlStyles.AllPaintingInWmPaint,true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable,true); InitializeComponent(); this.SuspendLayout(); this.editor = new TextEditorOverlay(this); this.editor.MultiLine = true; this.editor.CommitEdit += new EventHandler<TextEditorEventArgs>(OnCommitEdit); this.editor.LayoutEditor += new EventHandler<TextEditorLayoutEventArgs>(OnLayoutEditor); this.ttf = new TypeToFindHandler(this, 2000); this.ttf.FindString += new TypeToFindEventHandler(FindString); this.ResumeLayout(); this.AccessibleRole=System.Windows.Forms.AccessibleRole.List; visibleTextCache = new Dictionary<TreeNode, string>(); }
public NodeTextView() { this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable, true); InitializeComponent(); this.SuspendLayout(); this.editor = new TextEditorOverlay(this); this.editor.MultiLine = true; this.editor.CommitEdit += new EventHandler <TextEditorEventArgs>(OnCommitEdit); this.editor.LayoutEditor += new EventHandler <TextEditorLayoutEventArgs>(OnLayoutEditor); this.ttf = new TypeToFindHandler(this, 2000); this.ttf.FindString += new TypeToFindEventHandler(FindString); this.ResumeLayout(); this.AccessibleRole = System.Windows.Forms.AccessibleRole.List; visibleTextCache = new Dictionary <TreeNode, string>(); }