C# Класс PdfRpt.Core.Helper.PropertyDataAnnotations

Processing custom data annotations.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetAggregateFunctionAttribute() публичный статический Метод

Returns PdfRptColumnAggregateFunctionAttribute data.
public static GetAggregateFunctionAttribute ( this info ) : AggregateFunction?
info this Property metadata info
Результат AggregateFunction?

GetCalculatedFieldFormulaAttribute() публичный статический Метод

Returns CalculatedFieldFormulaAttribute data.
public static GetCalculatedFieldFormulaAttribute ( this fieldsInfo, string forPropertyName ) : object>.Func
fieldsInfo this current object's FieldInfo[]
forPropertyName string corresponding property
Результат object>.Func

GetCellsHorizontalAlignmentAttribute() публичный статический Метод

Returns PdfRptColumnCellsHorizontalAlignmentAttribute data.
public static GetCellsHorizontalAlignmentAttribute ( this info ) : HorizontalAlignment?
info this Property metadata info
Результат HorizontalAlignment?

GetColumnIncludeInGroupingAttribute() публичный статический Метод

Returns IncludeInGroupingAttribute data.
public static GetColumnIncludeInGroupingAttribute ( this info ) : bool?
info this Property metadata info
Результат bool?

GetColumnIsCalculatedFieldAttribute() публичный статический Метод

Returns PdfRptColumnIsVisibleAttribute data.
public static GetColumnIsCalculatedFieldAttribute ( this info ) : bool?
info this Property metadata info
Результат bool?

GetColumnIsVisibleAttribute() публичный статический Метод

Returns PdfRptColumnIsVisibleAttribute data.
public static GetColumnIsVisibleAttribute ( this info ) : bool?
info this Property metadata info
Результат bool?

GetColumnOrderAttribute() публичный статический Метод

Returns PdfRptColumnOrderAttribute data.
public static GetColumnOrderAttribute ( this info ) : int?
info this Property metadata info
Результат int?

GetColumnPropertyNameAttribute() публичный статический Метод

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
Результат string

GetColumnWidthAttribute() публичный статический Метод

Returns PdfRptColumnPdfRptColumnWidthAttribute data.
public static GetColumnWidthAttribute ( this info ) : float?
info this Property metadata info
Результат float?

GetDataFormatStringAttribute() публичный статический Метод

Returns DisplayFormatAttribute data.
public static GetDataFormatStringAttribute ( this info ) : string
info this Property metadata info
Результат string

GetEnumStringValue() публичный статический Метод

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
Результат string

GetFieldsInfoOfStronglyTypedListDataSource() публичный статический Метод

Gets FieldInfo[] Of StronglyTypedListDataSource
public static GetFieldsInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.FieldInfo[]
bodyDataSource this data source
Результат System.Reflection.FieldInfo[]

GetFixedHeightAttribute() публичный статический Метод

Returns FixedHeightAttribute data.
public static GetFixedHeightAttribute ( this info ) : float?
info this Property metadata info
Результат float?

GetIncludedGroupFieldEqualityComparerAttribute() публичный статический Метод

Returns IncludedGroupFieldEqualityComparerAttribute data.
public static GetIncludedGroupFieldEqualityComparerAttribute ( this fieldsInfo, string forPropertyName ) : Func
fieldsInfo this current object's FieldInfo[]
forPropertyName string corresponding property
Результат Func

GetMinimumHeightAttribute() публичный статический Метод

Returns MinimumHeightAttribute data.
public static GetMinimumHeightAttribute ( this info ) : float?
info this Property metadata info
Результат float?

GetNullDisplayTextAttribute() публичный статический Метод

Returns DisplayFormatAttribute data.
public static GetNullDisplayTextAttribute ( this info ) : string
info this Property metadata info
Результат string

GetPdfRptColumnCustomAggregateFunctionAttribute() публичный статический Метод

Returns PdfRptColumnCustomAggregateFunctionAttribute data.
public static GetPdfRptColumnCustomAggregateFunctionAttribute ( this info ) : Type
info this Property metadata info
Результат System.Type

GetPdfRptColumnTemplateAttribute() публичный статический Метод

Returns ColumnTemplateAttribute data.
public static GetPdfRptColumnTemplateAttribute ( this info ) : Type
info this Property metadata info
Результат System.Type

GetPropertiesInfoOfStronglyTypedListDataSource() публичный статический Метод

Gets PropertiesInfo[] Of StronglyTypedListDataSource.
public static GetPropertiesInfoOfStronglyTypedListDataSource ( this bodyDataSource ) : System.Reflection.PropertyInfo[]
bodyDataSource this data source
Результат System.Reflection.PropertyInfo[]

IsStronglyTypedListDataSource() публичный статический Метод

Determines whether a IPdfReportDataSource is type of StronglyTypedListDataSource or not.
public static IsStronglyTypedListDataSource ( this bodyDataSource ) : bool
bodyDataSource this data source
Результат bool