combit List & Label 29 - .NET Help
combit.Reporting Namespace / DesignerFunction Class / ParameterAutoComplete Event


In This Topic
    ParameterAutoComplete Event
    In This Topic

    Via ParameterAutoComplete, it is possible to give different recommended values to the AutoComplete feature of the formula assistant.

    Syntax
    'Declaration
     
    
    Public Event ParameterAutoComplete As ParameterAutoCompleteHandler
    public event ParameterAutoCompleteHandler ParameterAutoComplete
    public:
    event ParameterAutoCompleteHandler^ ParameterAutoComplete
    Event Data

    The event handler receives an argument of type ParameterAutoCompleteEventArgs containing data related to this event. The following ParameterAutoCompleteEventArgs properties provide information specific to this event.

    PropertyDescription

    The index of the respective parameter.

     
    Use Values.Add to define a new auto complete value.  
    Example
    private void designerFunction1_ParameterAutoComplete(object sender, ParameterAutoCompleteEventArgs e)
    {
         for(int i = 1; i <= 20; i++)
              e.Values.Add(i.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