Grasshopper API
GH_DocumentGH_UndoUtilCreateRemoveStateEvent Method |
Create a new undo record for a single solution state removal.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public GH_UndoRecord CreateRemoveStateEvent( string name, int stateIndex, GH_State state )
Public Function CreateRemoveStateEvent ( name As String, stateIndex As Integer, state As GH_State ) As GH_UndoRecord
Parameters
- name
- Type: SystemString
Name of undo record. - stateIndex
- Type: SystemInt32
Index of state. - state
- Type: Grasshopper.KernelGH_State
Solution state.
Return Value
Type: GH_UndoRecordA newly created undo record.
