Skip to content

ContentUndoHelper

Public Class

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

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

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

Call this *after* adding a content. Undo will cause the content to be deleted.


Public Method

Releases all resources used by the ContentUndoHelper


Protected Method

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

(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

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

Call this before tweaking a single content parameter. Undo will cause the parameter to be restored.