PdfRpt.Export.ExportToExcel.setHorizontalAlignment C# (CSharp) Method

setHorizontalAlignment() private method

private setHorizontalAlignment ( ColumnAttributes item ) : void
item PdfRpt.Core.Contracts.ColumnAttributes
return void
        private void setHorizontalAlignment(ColumnAttributes item)
        {
            if (item.CellsHorizontalAlignment == null)
                item.CellsHorizontalAlignment = HorizontalAlignment.Center;
            _worksheet.Cells[_row, _col].Style.HorizontalAlignment = _horizontalAlignment[item.CellsHorizontalAlignment.Value];
            _worksheet.Cells[_row, _col].Style.Font.Bold = true;
        }