ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering Namespace / CustomReportItemExtension Class / GetCustomPropertyAsInteger 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
    GetCustomPropertyAsInteger Method
    In This Topic
    Gets the custom property value as an integer.
    Syntax
    'Declaration
     
    Public Shared Function GetCustomPropertyAsInteger( _
       ByVal reportItem As CustomReportItem, _
       ByVal propertyName As String, _
       ByVal defaultValue As Integer _
    ) As Integer
    public static int GetCustomPropertyAsInteger( 
       CustomReportItem reportItem,
       string propertyName,
       int 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 an integer, or the default value if the property does not exist or cannot be converted.
    See Also