ContentUndoHelper
Content undo helper to be used with “using {}” to enclose a block of changes.
Inheritance Hierarchy
System.Object
Rhino.Render.ContentUndoHelper
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class ContentUndoHelper : IDisposable
The ContentUndoHelper type exposes the following members.
Constructors
Name
Description
Public Method
ContentUndoHelper(RhinoDoc)
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 Method
ContentUndoHelper(RhinoDoc, String)
Obsolete.
DEPRECATED: 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.
Methods
Name
Description
Public Method
AddContent
Call this *after* adding a content. Undo will cause the content to be deleted.
Public Method
Dispose.
Releases all resources used by the ContentUndoHelper
Protected Method
Dispose(Boolean)
Releases the unmanaged resources used by the ContentUndoHelper and optionally releases the managed resources
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
(Overrides Object.Finalize..)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
ModifyContent
Call this before modifying or deleting a content. Undo will cause the content to be restored.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public Method
TweakContent
Call this before tweaking a single content parameter. Undo will cause the parameter to be restored.