Click or drag to resize

ContentUndoHelper Class

Content undo helper to be used with "using {}" to enclose a block of changes.
Inheritance Hierarchy

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
public class ContentUndoHelper : IDisposable

The ContentUndoHelper type exposes the following members.

Public methodContentUndoHelper
Constructs a ContentUndoHelper object inside a using block to handle undo when modifying a RenderContent or - alternatively - create the ContentUndoHelper and explicitly call Dispose when you are done.
Public methodAddContent
Call this *after* adding a content. Undo will cause the content to be deleted.
Public methodDispose
Releases all resources used by the ContentUndoHelper
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the ContentUndoHelper and optionally releases the managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize (Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodModifyContent
Call this before modifying or deleting a content. Undo will cause the content to be restored.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTweakContent
Call this before tweaking a single content parameter. Undo will cause the parameter to be restored.
See Also