Spread WPF Documentation
GetCustomFunction Method (Worksheet)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : GetCustomFunction Method
The name of the user-defined custom function.
Gets the specified user-defined custom function.
Syntax
'Declaration
 
Public Function GetCustomFunction( _
   ByVal name As System.String _
) As CalcFunction
'Usage
 
Dim instance As Worksheet
Dim name As System.String
Dim value As CalcFunction
 
value = instance.GetCustomFunction(name)
public CalcFunction GetCustomFunction( 
   System.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

Reference

Worksheet Class
Worksheet Members