Spread WPF 14
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / GetCustomFunction Method
The name of the user-defined custom function.
Example


In This Topic
    GetCustomFunction Method (Worksheet)
    In This Topic
    Gets the specified user-defined custom function.
    Syntax
    'Declaration
     
    Public Function GetCustomFunction( _
       ByVal name As String _
    ) As CalcFunction
    'Usage
     
    Dim instance As Worksheet
    Dim name As String
    Dim value As CalcFunction
     
    value = instance.GetCustomFunction(name)
    public CalcFunction GetCustomFunction( 
       string name
    )

    Parameters

    name
    The name of the user-defined custom function.

    Return Value

    The function.
    Example
    This example uses the GetCustomFunction method.
    GrapeCity.CalcEngine.Functions.CalcFunction fi;
    fi = gcSpreadSheet1.Sheets[0].GetCustomFunction("CUBE");
    listBox1.Items.Add(fi.Name.ToString());
    Dim fi As GrapeCity.CalcEngine.Functions.CalcFunction
    fi = GcSpreadSheet1.Sheets(0).GetCustomFunction("CUBE")
    ListBox1.Items.Add(fi.Name.ToString())
    See Also