Click or drag to resize

IGH_ContextualParameter2 Interface

Version 2 of Base interface for contextual parameters. This makes accessing non-strongly-typed functionality easier.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public interface IGH_ContextualParameter2 : IGH_ContextualParameter

The IGH_ContextualParameter2 type exposes the following members.

Properties
  NameDescription
Public propertyAtLeast
Minimum number of inputs to request
(Inherited from IGH_ContextualParameter.)
Public propertyAtMost
Maximum number of inputs to request.
(Inherited from IGH_ContextualParameter.)
Public propertyContextualData
Iterate over all specified contextual values.
(Inherited from IGH_ContextualParameter.)
Public propertyImmediate
Gets whether this parameter triggers immediate updates from inside its getter. Immediacy is important for a smooth experience, but it maybe disabled if the expected recalculation time becomes excessive.
(Inherited from IGH_ContextualParameter.)
Public propertyPrompt
Gets the prompt to be displayed while asking the user to enter data. The prompt string may contain '{0}' fields which will be populated with the amount of values picked so far.
(Inherited from IGH_ContextualParameter.)
Top
Methods
  NameDescription
Public methodAssignContextualData
Assign a collection of values as contextual data.
(Inherited from IGH_ContextualParameter.)
Public methodAutoAssignContextualData
Use the in-build getter UI to assign data to the parameter.
(Inherited from IGH_ContextualParameter.)
Public methodClearContextualData
Clear previously assigned collection of values as contextual data
Top
See Also