Exemplo n.º 1
0
 // Used by Janitor.Fody
 private void DisposeManaged()
 {
     CellsCollection.Clear();
     ColumnsCollection.Clear();
     RowsCollection.Clear();
     MergedRanges.RemoveAll();
 }
 public void Dispose()
 {
     CellsCollection.Clear();
     ColumnsCollection.Clear();
     RowsCollection.Clear();
     MergedRanges.RemoveAll();
 }
Exemplo n.º 3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (brush != null)
         {
             brush.Dispose();
             brush = null;
         }
         if (bitMap != null)
         {
             bitMap.Dispose();
             bitMap = null;
         }
         if (cells != null)
         {
             cells.Clear();
             cells = null;
         }
     }
 }