combit List & Label 29 - .NET Help
combit.Reporting Namespace / EvaluateFunctionHandler Delegate


In This Topic
    EvaluateFunctionHandler Delegate
    In This Topic

    The event EvaluateFunction has to be handled in order to activate the function. You can gain access to the parameters indicated by the user through event arguments. Use the following lines in order to return the total of both parameters, for instance.

    Syntax
    'Declaration
     
    
    Public Delegate Sub EvaluateFunctionHandler( _
       ByVal sender As Object, _
       ByVal e As EvaluateFunctionEventArgs _
    ) 
    public delegate void EvaluateFunctionHandler( 
       object sender,
       EvaluateFunctionEventArgs e
    )
    public delegate void EvaluateFunctionHandler( 
       Object^ sender,
       EvaluateFunctionEventArgs^ e
    )

    Parameters

    sender
    e
    Example
    private void designerFunction1_EvaluateFunction(object sender, EvaluateFunctionEventArgs e)
    {
         e.ResultValue = (int.Parse(e.Parameter1.ToString()) + int.Parse(e.Parameter2.ToString()));
    }
    
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also