[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Parameter.DefaultValue

DefaultValue Property

DefaultValue

Gets the default value of the parameter.

This property returns the default value that was specified when the Parameter instance was created. The returned object type depends on the parameter's FunctionValueType.

Declaration
public object DefaultValue { get; }
Public ReadOnly Property DefaultValue As Object
Examples
Parameter taxRateParameter = new Parameter(FunctionValueType.Number, 0.08d);
Workbook.AddCustomFunction(new AddTaxFunction(new[] {
    new Parameter(FunctionValueType.Number),
    taxRateParameter
}), true);
worksheet.Range["A1"].Formula = "=ADD_TAX(100)";
object total = worksheet.Range["A1"].Value;
object defaultValue = taxRateParameter.DefaultValue;