Ejemplo n.º 1
0
        /// <summary>
        /// Adds a row.
        /// </summary>
        /// <param name="sheetData">The sheet data.</param>
        /// <returns>
        /// The new row.
        /// </returns>
        public static Row AddRow(this SheetData sheetData)
        {
            uint rowIndex = (uint)sheetData.GetRowCount() + 1;
            var  row      = new Row
            {
                RowIndex = rowIndex,
            };

            sheetData.Append(row);

            return(row);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a row.
        /// </summary>
        /// <param name="sheetData">The sheet data.</param>
        /// <param name="height">The height.</param>
        /// <returns>
        /// The new row.
        /// </returns>
        public static Row AddRow(this SheetData sheetData, double height)
        {
            uint rowIndex = (uint)sheetData.GetRowCount() + 1;
            var  row      = new Row
            {
                RowIndex     = rowIndex,
                Height       = new DoubleValue(height),
                CustomHeight = new BooleanValue(true),
            };

            sheetData.Append(row);

            return(row);
        }