ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering Namespace / CustomReportItemExtension Class / GetCustomPropertyAsEnum<T> Method
The enum type.
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
    GetCustomPropertyAsEnum<T> Method
    In This Topic
    Gets the custom property value as an enum.
    Syntax
    'Declaration
     
    Public Shared Function GetCustomPropertyAsEnum(Of T)( _
       ByVal reportItem As CustomReportItem, _
       ByVal propertyName As String, _
       ByVal defaultValue As T _
    ) As T
    public static T GetCustomPropertyAsEnum<T>( 
       CustomReportItem reportItem,
       string propertyName,
       T 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.

    Type Parameters

    T
    The enum type.

    Return Value

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