PdfRpt.Core.Helper.ApplyDataAnnotations.applyCellsHorizontalAlignment C# (CSharp) Method

applyCellsHorizontalAlignment() private static method

private static applyCellsHorizontalAlignment ( PropertyInfo property, ColumnAttributes columnAttributes ) : void
property System.Reflection.PropertyInfo
columnAttributes PdfRpt.Core.Contracts.ColumnAttributes
return void
        private static void applyCellsHorizontalAlignment(PropertyInfo property, ColumnAttributes columnAttributes)
        {
            var cellsHorizontalAlignment = property.GetCellsHorizontalAlignmentAttribute();
            if (cellsHorizontalAlignment != null)
                columnAttributes.CellsHorizontalAlignment = cellsHorizontalAlignment.Value;
        }