コード例 #1
0
        /// <summary>
        /// Creates a table item.
        /// </summary>
        /// <param name="setup">The setup object for the item.</param>
        /// <param name="cells">The cells in this item.</param>
        public EwfTableItem( EwfTableItemSetup setup, IEnumerable<EwfTableCell> cells )
        {
            Setup = setup ?? new EwfTableItemSetup();

            var cellList = cells.ToList();
            if( !cellList.Any() )
                throw new ApplicationException( "Cell array must have at least one item." );
            Cells = cellList.AsReadOnly();
        }
コード例 #2
0
        /// <summary>
        /// Creates a table item.
        /// </summary>
        /// <param name="setup">The setup object for the item.</param>
        /// <param name="cells">The cells in this item.</param>
        public EwfTableItem(EwfTableItemSetup setup, IEnumerable <EwfTableCell> cells)
        {
            Setup = setup ?? new EwfTableItemSetup();

            var cellList = cells.ToList();

            if (!cellList.Any())
            {
                throw new ApplicationException("Cell array must have at least one item.");
            }
            Cells = cellList.AsReadOnly();
        }
コード例 #3
0
 /// <summary>
 /// Creates a table item.
 /// </summary>
 /// <param name="setup">The setup object for the item.</param>
 /// <param name="cells">The cells in this item.</param>
 public EwfTableItem( EwfTableItemSetup setup, params EwfTableCell[] cells )
     : this(setup, cells as IEnumerable<EwfTableCell>)
 {
 }
コード例 #4
0
 /// <summary>
 /// Creates a table item.
 /// </summary>
 /// <param name="setup">The setup object for the item.</param>
 /// <param name="cells">The cells in this item.</param>
 public EwfTableItem(EwfTableItemSetup setup, params EwfTableCell[] cells) : this(setup, cells as IEnumerable <EwfTableCell>)
 {
 }