Пример #1
0
        /**
         * Creates a Cell with these attributes.
         * @param rowAttributes
         * @return a cell based on these attributes.
         * @throws BadElementException
         */
        public Cell CreateCell(SimpleCell rowAttributes)
        {
            Cell cell = new Cell();

            cell.CloneNonPositionParameters(rowAttributes);
            cell.SoftCloneNonPositionParameters(this);
            cell.Colspan             = colspan;
            cell.HorizontalAlignment = horizontalAlignment;
            cell.VerticalAlignment   = verticalAlignment;
            cell.UseAscender         = useAscender;
            cell.UseBorderPadding    = useBorderPadding;
            cell.UseDescender        = useDescender;
            foreach (IElement element in content)
            {
                cell.AddElement(element);
            }
            return(cell);
        }
Пример #2
0
 /**
 * Creates a Cell with these attributes.
 * @param rowAttributes
 * @return a cell based on these attributes.
 * @throws BadElementException
 */
 public Cell CreateCell(SimpleCell rowAttributes) {
     Cell cell = new Cell();
     cell.CloneNonPositionParameters(rowAttributes);
     cell.SoftCloneNonPositionParameters(this);
     cell.Colspan = colspan;
     cell.HorizontalAlignment = horizontalAlignment;
     cell.VerticalAlignment = verticalAlignment;
     cell.UseAscender = useAscender;
     cell.UseBorderPadding = useBorderPadding;
     cell.UseDescender = useDescender;
     foreach (IElement element in content) {
         cell.AddElement(element);
     }
     return cell;
 }