C# Class PdfRpt.Core.Helper.PropertyDataAnnotations

Processing custom data annotations.
显示文件 Open project: VahidN/PdfReport

Public Methods

Method Description
GetAggregateFunctionAttribute ( this info ) : AggregateFunction?

Returns PdfRptColumnAggregateFunctionAttribute data.

GetCalculatedFieldFormulaAttribute ( this fieldsInfo, string forPropertyName ) : object>.Func

Returns CalculatedFieldFormulaAttribute data.

GetCellsHorizontalAlignmentAttribute ( this info ) : HorizontalAlignment?

Returns PdfRptColumnCellsHorizontalAlignmentAttribute data.

GetColumnIncludeInGroupingAttribute ( this info ) : bool?

Returns IncludeInGroupingAttribute data.

GetColumnIsCalculatedFieldAttribute ( this info ) : bool?

Returns PdfRptColumnIsVisibleAttribute data.

GetColumnIsVisibleAttribute ( this info ) : bool?

Returns PdfRptColumnIsVisibleAttribute data.

GetColumnOrderAttribute ( this info ) : int?

Returns PdfRptColumnOrderAttribute data.

GetColumnPropertyNameAttribute ( this info ) : string

Returns PdfRptColumnPropertyNameAttribute data. Processing order is checking PdfRptColumnPropertyNameAttribute first, then DisplayNameAttribute and finally DescriptionAttribute. If none of these is available, the actual property name will be returned.

GetColumnWidthAttribute ( this info ) : float?

Returns PdfRptColumnPdfRptColumnWidthAttribute data.

GetDataFormatStringAttribute ( this info ) : string

Returns DisplayFormatAttribute data.

GetEnumStringValue ( this value ) : string

Getting string attribute of Enum's value. Processing order is checking DisplayNameAttribute first and then DescriptionAttribute. If none of these is available, value.ToString() will be returned.

GetFieldsInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.FieldInfo[]

Gets FieldInfo[] Of StronglyTypedListDataSource

GetFixedHeightAttribute ( this info ) : float?

Returns FixedHeightAttribute data.

GetIncludedGroupFieldEqualityComparerAttribute ( this fieldsInfo, string forPropertyName ) : Func

Returns IncludedGroupFieldEqualityComparerAttribute data.

GetMinimumHeightAttribute ( this info ) : float?

Returns MinimumHeightAttribute data.

GetNullDisplayTextAttribute ( this info ) : string

Returns DisplayFormatAttribute data.

GetPdfRptColumnCustomAggregateFunctionAttribute ( this info ) : Type

Returns PdfRptColumnCustomAggregateFunctionAttribute data.

GetPdfRptColumnTemplateAttribute ( this info ) : Type

Returns ColumnTemplateAttribute data.

GetPropertiesInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.PropertyInfo[]

Gets PropertiesInfo[] Of StronglyTypedListDataSource.

IsStronglyTypedListDataSource ( this bodyDataSource ) : bool

Determines whether a IPdfReportDataSource is type of StronglyTypedListDataSource or not.

Method Details

GetAggregateFunctionAttribute() public static method

Returns PdfRptColumnAggregateFunctionAttribute data.
public static GetAggregateFunctionAttribute ( this info ) : AggregateFunction?
info this Property metadata info
return AggregateFunction?

GetCalculatedFieldFormulaAttribute() public static method

Returns CalculatedFieldFormulaAttribute data.
public static GetCalculatedFieldFormulaAttribute ( this fieldsInfo, string forPropertyName ) : object>.Func
fieldsInfo this current object's FieldInfo[]
forPropertyName string corresponding property
return object>.Func

GetCellsHorizontalAlignmentAttribute() public static method

Returns PdfRptColumnCellsHorizontalAlignmentAttribute data.
public static GetCellsHorizontalAlignmentAttribute ( this info ) : HorizontalAlignment?
info this Property metadata info
return HorizontalAlignment?

GetColumnIncludeInGroupingAttribute() public static method

Returns IncludeInGroupingAttribute data.
public static GetColumnIncludeInGroupingAttribute ( this info ) : bool?
info this Property metadata info
return bool?

GetColumnIsCalculatedFieldAttribute() public static method

Returns PdfRptColumnIsVisibleAttribute data.
public static GetColumnIsCalculatedFieldAttribute ( this info ) : bool?
info this Property metadata info
return bool?

GetColumnIsVisibleAttribute() public static method

Returns PdfRptColumnIsVisibleAttribute data.
public static GetColumnIsVisibleAttribute ( this info ) : bool?
info this Property metadata info
return bool?

GetColumnOrderAttribute() public static method

Returns PdfRptColumnOrderAttribute data.
public static GetColumnOrderAttribute ( this info ) : int?
info this Property metadata info
return int?

GetColumnPropertyNameAttribute() public static method

Returns PdfRptColumnPropertyNameAttribute data. Processing order is checking PdfRptColumnPropertyNameAttribute first, then DisplayNameAttribute and finally DescriptionAttribute. If none of these is available, the actual property name will be returned.
public static GetColumnPropertyNameAttribute ( this info ) : string
info this Property metadata info
return string

GetColumnWidthAttribute() public static method

Returns PdfRptColumnPdfRptColumnWidthAttribute data.
public static GetColumnWidthAttribute ( this info ) : float?
info this Property metadata info
return float?

GetDataFormatStringAttribute() public static method

Returns DisplayFormatAttribute data.
public static GetDataFormatStringAttribute ( this info ) : string
info this Property metadata info
return string

GetEnumStringValue() public static method

Getting string attribute of Enum's value. Processing order is checking DisplayNameAttribute first and then DescriptionAttribute. If none of these is available, value.ToString() will be returned.
public static GetEnumStringValue ( this value ) : string
value this enum value
return string

GetFieldsInfoOfStronglyTypedListDataSource() public static method

Gets FieldInfo[] Of StronglyTypedListDataSource
public static GetFieldsInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.FieldInfo[]
bodyDataSource this data source
return System.Reflection.FieldInfo[]

GetFixedHeightAttribute() public static method

Returns FixedHeightAttribute data.
public static GetFixedHeightAttribute ( this info ) : float?
info this Property metadata info
return float?

GetIncludedGroupFieldEqualityComparerAttribute() public static method

Returns IncludedGroupFieldEqualityComparerAttribute data.
public static GetIncludedGroupFieldEqualityComparerAttribute ( this fieldsInfo, string forPropertyName ) : Func
fieldsInfo this current object's FieldInfo[]
forPropertyName string corresponding property
return Func

GetMinimumHeightAttribute() public static method

Returns MinimumHeightAttribute data.
public static GetMinimumHeightAttribute ( this info ) : float?
info this Property metadata info
return float?

GetNullDisplayTextAttribute() public static method

Returns DisplayFormatAttribute data.
public static GetNullDisplayTextAttribute ( this info ) : string
info this Property metadata info
return string

GetPdfRptColumnCustomAggregateFunctionAttribute() public static method

Returns PdfRptColumnCustomAggregateFunctionAttribute data.
public static GetPdfRptColumnCustomAggregateFunctionAttribute ( this info ) : Type
info this Property metadata info
return System.Type

GetPdfRptColumnTemplateAttribute() public static method

Returns ColumnTemplateAttribute data.
public static GetPdfRptColumnTemplateAttribute ( this info ) : Type
info this Property metadata info
return System.Type

GetPropertiesInfoOfStronglyTypedListDataSource() public static method

Gets PropertiesInfo[] Of StronglyTypedListDataSource.
public static GetPropertiesInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.PropertyInfo[]
bodyDataSource this data source
return System.Reflection.PropertyInfo[]

IsStronglyTypedListDataSource() public static method

Determines whether a IPdfReportDataSource is type of StronglyTypedListDataSource or not.
public static IsStronglyTypedListDataSource ( this bodyDataSource ) : bool
bodyDataSource this data source
return bool