[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Parameter.AcceptCustomObjects

AcceptCustomObjects Property

AcceptCustomObjects

Gets whether the parameter accepts custom objects.

When this property is true, the parameter can accept custom objects when ValueType is Object.

Declaration
public bool AcceptCustomObjects { get; }
Public ReadOnly Property AcceptCustomObjects As Boolean
Examples
Parameter productParameter = new Parameter(FunctionValueType.Object, false, true);
Workbook.AddCustomFunction(new ProductFunction(), true);
Workbook.AddCustomFunction(new ProductPriceFunction(new[] { productParameter }), true);
worksheet.Range["A1"].Formula = "=PRODUCT_PRICE(MY_PRODUCT())";
bool acceptCustomObjects = productParameter.AcceptCustomObjects;