示例#1
0
        /// <summary>
        /// Gets the row heights.
        /// </summary>
        /// <param name="worksheet">The worksheet.</param>
        /// <param name="area">The area.</param>
        /// <param name="startIndex">The start index.</param>
        /// <param name="count">The count.</param>
        /// <returns></returns>
        public static List <double> GetRowHeights(Worksheet worksheet, SheetArea area, int startIndex, int count)
        {
            List <double> list = new List <double>();

            for (int i = startIndex; i < (startIndex + count); i++)
            {
                if (!worksheet.GetActualRowVisible(i, area))
                {
                    list.Add(0.0);
                }
                else
                {
                    list.Add(worksheet.GetRowHeight(i, area));
                }
            }
            return(list);
        }