Click or drag to resize

IGH_VariableParameterComponentDestroyParameter Method

This function will be called when a parameter is about to be removed. You do not need to do anything, but this would be a good time to remove any event handlers that might be attached to the parameter in question.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
bool DestroyParameter(
	GH_ParameterSide side,
	int index


Type: Grasshopper.KernelGH_ParameterSide
Parameter side.
Type: SystemInt32
Removal index of parameter.

Return Value

Type: Boolean
Return True if the parameter in question can indeed be removed. Note, this is only in emergencies, typically the CanRemoveParameter function should return false if the parameter in question is not removable.
See Also