[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.CustomReportItemExtension.GetCustomPropertyAsBoolean

GetCustomPropertyAsBoolean Method

GetCustomPropertyAsBoolean(CustomReportItem, string, bool)

Gets the custom property value as a boolean.

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

The custom report item.

string propertyName

The name of the custom property.

bool defaultValue

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

Returns
Type Description
bool

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