C# Class PdfRpt.Core.Helper.PropertyDataAnnotations

Processing custom data annotations.
Afficher le fichier Open project: VahidN/PdfReport

Méthodes publiques

Méthode 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 méthode

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

GetCalculatedFieldFormulaAttribute() public static méthode

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

GetCellsHorizontalAlignmentAttribute() public static méthode

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

GetColumnIncludeInGroupingAttribute() public static méthode

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

GetColumnIsCalculatedFieldAttribute() public static méthode

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

GetColumnIsVisibleAttribute() public static méthode

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

GetColumnOrderAttribute() public static méthode

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

GetColumnPropertyNameAttribute() public static méthode

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
Résultat string

GetColumnWidthAttribute() public static méthode

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

GetDataFormatStringAttribute() public static méthode

Returns DisplayFormatAttribute data.
public static GetDataFormatStringAttribute ( this info ) : string
info this Property metadata info
Résultat string

GetEnumStringValue() public static méthode

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
Résultat string

GetFieldsInfoOfStronglyTypedListDataSource() public static méthode

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

GetFixedHeightAttribute() public static méthode

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

GetIncludedGroupFieldEqualityComparerAttribute() public static méthode

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

GetMinimumHeightAttribute() public static méthode

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

GetNullDisplayTextAttribute() public static méthode

Returns DisplayFormatAttribute data.
public static GetNullDisplayTextAttribute ( this info ) : string
info this Property metadata info
Résultat string

GetPdfRptColumnCustomAggregateFunctionAttribute() public static méthode

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

GetPdfRptColumnTemplateAttribute() public static méthode

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

GetPropertiesInfoOfStronglyTypedListDataSource() public static méthode

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

IsStronglyTypedListDataSource() public static méthode

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