[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Parameter.Name

Name Property

Name

Gets the name of the parameter.

This property returns the name specified when the Parameter instance was created. Use the parameter name to identify an argument when defining a CustomFunction or AsyncCustomFunction.

Declaration
public string Name { get; }
Public ReadOnly Property Name As String
Examples
Parameter priceParameter = new Parameter("price", "Original price.", FunctionValueType.Number, 0d);
Parameter discountParameter = new Parameter("discount", "Discount rate.", FunctionValueType.Number, 0d);
Workbook.AddCustomFunction(new DiscountPriceFunction(new[] { priceParameter, discountParameter }), true);
string name = priceParameter.Name;