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)
Syntax bool DestroyParameter(
GH_ParameterSide side,
int index
)
Function DestroyParameter (
side As GH_ParameterSide,
index As Integer
) As Boolean
Parameters
- side
- Type: Grasshopper.KernelGH_ParameterSide
Parameter side. - index
- Type: SystemInt32
Removal index of parameter.
Return Value
Type:
BooleanReturn 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