FormFlowsheetGetSnapshot Method

Serialises the requested portion of the flowsheet state to an XDocument suitable for undo/redo or cloning.

Definition

Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
public XDocument GetSnapshot(
	SnapshotType stype,
	ISimulationObject obj = null
)

Parameters

stype  SnapshotType
The scope of the snapshot.
obj  ISimulationObject  (Optional)
When stype is ObjectData, the specific object to serialise.

Return Value

XDocument
An XDocument containing the serialised state.

Implements

IFlowsheetGetSnapshot(SnapshotType, ISimulationObject)

See Also