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