ICSharpCode.TextEditor.Caret.Dispose C# (CSharp) Метод

Dispose() публичный Метод

public Dispose ( ) : void
Результат void
		public void Dispose()
		{
			textArea.GotFocus  -= new EventHandler(GotFocus);
			textArea.LostFocus -= new EventHandler(LostFocus);
			textArea = null;
			caretImplementation.Dispose();
		}
		

Usage Example

Пример #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (!disposed)
         {
             disposed = true;
             if (caret != null)
             {
                 caret.PositionChanged -= new EventHandler(SearchMatchingBracket);
                 caret.Dispose();
             }
             if (selectionManager != null)
             {
                 selectionManager.Dispose();
             }
             Document.TextContentChanged             -= new EventHandler(TextContentChanged);
             Document.FoldingManager.FoldingsChanged -= new EventHandler(DocumentFoldingsChanged);
             motherTextAreaControl   = null;
             motherTextEditorControl = null;
             foreach (AbstractMargin margin in leftMargins)
             {
                 if (margin is IDisposable)
                 {
                     (margin as IDisposable).Dispose();
                 }
             }
             textView.Dispose();
         }
     }
 }
All Usage Examples Of ICSharpCode.TextEditor.Caret::Dispose