Record the addition of a single solution state to a document.

Constructors

GH_AddStateAction

#
public GH_AddStateAction(int index, GH_State state)
index (int)
state (GH_State)

Fields

m_data

protected byte[] m_data
Internal data storage for serialized archives.
inherited fromGH_ArchivedUndoAction

Properties

ExpiresDisplay

public virtual bool ExpiresDisplay { get; }
Override this property if you want the Rhino viewport display to refresh upon undo completion.
inherited fromGH_UndoAction
ExpiresDisplay

ExpiresSolution

public virtual bool ExpiresSolution { get; }
Override this property if you want the Grasshopper solution to refresh upon undo completion.
inherited fromGH_UndoAction
ExpiresSolution

State

public GH_UndoState State { get; }
inherited fromGH_UndoAction
State

Methods

Deserialize

protected void Deserialize(GH_ISerializable obj)
Deserializes the obj from the local archive.
inherited fromGH_ArchivedUndoAction
obj (GH_ISerializable)
ArgumentNullExceptionThrown when obj is a null reference.
NullReferenceExceptionThrown when the internal archive data is null.
IOExceptionThrown when the deserialization fails.

Internal_Redo

#
protected override void Internal_Redo(GH_Document doc)
doc (GH_Document)

Internal_Undo

#
protected override void Internal_Undo(GH_Document doc)
doc (GH_Document)

Read

#
public override bool Read(GH_IReader reader)
reader (GH_IReader)

Redo

public void Redo(GH_Document doc)
inherited fromGH_UndoAction
doc (GH_Document)
Redo

Serialize

protected void Serialize(GH_ISerializable obj)
Serializes the obj into the local archive.
inherited fromGH_ArchivedUndoAction
obj (GH_ISerializable)Object to serialize

SerializeToByteArray

protected byte[] SerializeToByteArray(GH_ISerializable obj)
Serializes the obj into the local archive.
inherited fromGH_ArchivedUndoAction
obj (GH_ISerializable)Object to serialize

Undo

public void Undo(GH_Document doc)
inherited fromGH_UndoAction
doc (GH_Document)
Undo

Write

#
public override bool Write(GH_IWriter writer)
writer (GH_IWriter)