Пример #1
0
        private string GetCellStyle(ICell cell, float cellwidth)
        {
            var cellStyle       = cell.CellStyle;
            var alignment       = cell.GetTextAlignment().RemoveEndingSemiColon();
            var font            = cell.GetFontStyle(Workbook).RemoveEndingSemiColon();
            var backgroundColor = cell.GetBackgroundColor().RemoveEndingSemiColon();

            return($"width:{cellwidth}px;{alignment};{font};{backgroundColor};");
        }