Record the removal of a single solution state from a document.

Constructors

GH_RemoveStateAction

#
public GH_RemoveStateAction(
index,
state
)

Fields

m_data

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

Properties

ExpiresDisplay

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

ExpiresSolution

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

State

public GH_UndoState State { get; }
inherited fromGH_UndoAction
State

Methods

Deserialize

Deserializes the obj from the local archive.
protected void Deserialize()
inherited fromGH_ArchivedUndoAction
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()

Internal_Undo

#
protected override void Internal_Undo()

Read

#
public override bool Read(
reader
)

Redo

public void Redo()
inherited fromGH_UndoAction
Redo

Serialize

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

SerializeToByteArray

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

Undo

public void Undo()
inherited fromGH_UndoAction
Undo

Write

#
public override bool Write(
writer
)