ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering Namespace / CustomReportItemExtension Class / GetCustomPropertyAsBoolean Method
The custom report item.
The name of the custom property.
The default value to return if the property does not exist or cannot be converted.

In This Topic
    GetCustomPropertyAsBoolean Method
    In This Topic
    Gets the custom property value as a boolean.
    Syntax
    'Declaration
     
    Public Shared Function GetCustomPropertyAsBoolean( _
       ByVal reportItem As CustomReportItem, _
       ByVal propertyName As String, _
       ByVal defaultValue As Boolean _
    ) As Boolean
    public static bool GetCustomPropertyAsBoolean( 
       CustomReportItem reportItem,
       string propertyName,
       bool defaultValue
    )

    Parameters

    reportItem
    The custom report item.
    propertyName
    The name of the custom property.
    defaultValue
    The default value to return if the property does not exist or cannot be converted.

    Return Value

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