CADability dotNET
All calls to AddUndoStep(ReversibleChange) that appeare inside the same context are considered to belong to the same action and override the previous call from the same context. So only the last call will be saved in the undo stack. Use ContextFrame with the C# "using" schema or call IDisposable.Dispose() to close the frame.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public IDisposable ContextFrame(
	Object context
)
Visual Basic
Public Function ContextFrame ( _
	context As Object _
) As IDisposable
Visual C++
public:
IDisposable^ ContextFrame(
	Object^ context
)

Parameters

context
Type: System..::..Object
any kind of object

Return Value

the IDisposable interface for the using schema

See Also