Beispiel #1
0
 public TextControl(string text)
 {
     this.EventShowContextMenu = new object();
     this.EventActiveTextViewChanged = new object();
     this.EventSelectionChanged = new object();
     this.EventLocationChanged = new object();
     this.EventTextBufferChanged = new object();
     this._buffer = new Microsoft.Matrix.UIComponents.SourceEditing.TextBuffer(new StringReader(text));
 }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         this._textManager.UnregisterTextControl(this);
         this._textManager = null;
         this._textLanguage = null;
         this._textColorizer = null;
         this._textHost = null;
         this._buffer = null;
     }
     base.Dispose(disposing);
 }