[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.CustomReportItemExtension.GetCustomPropertyAsInteger

GetCustomPropertyAsInteger Method

GetCustomPropertyAsInteger(CustomReportItem, string, int)

Gets the custom property value as an integer.

Declaration
public static int GetCustomPropertyAsInteger(this CustomReportItem reportItem, string propertyName, int defaultValue)
Parameters
Type Name Description
CustomReportItem reportItem

The custom report item.

string propertyName

The name of the custom property.

int defaultValue

The default value to return if the property does not exist or cannot be converted.

Returns
Type Description
int

The custom property value as an integer, or the default value if the property does not exist or cannot be converted.