Beispiel #1
0
        // this method is called when we load the table
        public void AttachCell(TableCell cell)
        {
            if (FCell != null)
            {
                FCell.CellData = null;
                FCell.Dispose();
            }

            Text          = cell.Text;
            ColSpan       = cell.ColSpan;
            RowSpan       = cell.RowSpan;
            FObjects      = cell.Objects;
            FStyle        = null;
            FCell         = cell;
            cell.CellData = this;
        }
Beispiel #2
0
 /// <summary>
 /// Disposes the <see cref="TableCellData"/> instance.
 /// </summary>
 public void Dispose()
 {
     if (style == null && cell != null)
     {
         cell.Dispose();
     }
     cell  = null;
     style = null;
 }