AODL.Utils.ContentMocker.CloneCell C# (CSharp) Method

CloneCell() private method

Makes a copy of a cell
private CloneCell ( Cell sourceCell ) : Cell
sourceCell AODL.Document.Content.Tables.Cell
return AODL.Document.Content.Tables.Cell
		private Cell CloneCell(Cell sourceCell)
		{
			Cell clonedCell = new Cell(sourceCell.Document, sourceCell.StyleName);
			foreach (IContent clonedContent in CloneContentCollection(
				new ContentCollection(sourceCell.Content)))
			{
				clonedCell.Content.Add(clonedContent);
			}
			
			return clonedCell;
		}
	}