UndoEngine::UndoUnit Class

 

Encapsulates a unit of work that a user can undo.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

System::Object
  System.ComponentModel.Design::UndoEngine::UndoUnit

protected ref class UndoUnit 

NameDescription
System_CAPS_pubmethodUndoEngine::UndoUnit(UndoEngine^, String^)

Initializes a new instance of the UndoEngine::UndoUnit class.

NameDescription
System_CAPS_pubpropertyIsEmpty

Gets a value indicating whether the UndoEngine::UndoUnit contains no events.

System_CAPS_pubpropertyName

Gets the name of the UndoEngine::UndoUnit.

System_CAPS_protpropertyUndoEngine

Gets the parent UndoEngine.

NameDescription
System_CAPS_pubmethodClose()

Receives a call from the undo engine to close this unit.

System_CAPS_pubmethodComponentAdded(ComponentEventArgs^)

Receives a call from the UndoEngine in response to a ComponentAdded event.

System_CAPS_pubmethodComponentAdding(ComponentEventArgs^)

Receives a call from the UndoEngine in response to a ComponentAdding event.

System_CAPS_pubmethodComponentChanged(ComponentChangedEventArgs^)

Receives a call from the UndoEngine in response to a ComponentChanged event.

System_CAPS_pubmethodComponentChanging(ComponentChangingEventArgs^)

Receives a call from the UndoEngine in response to a ComponentChanging event.

System_CAPS_pubmethodComponentRemoved(ComponentEventArgs^)

Receives a call from the UndoEngine in response to a ComponentRemoved event.

System_CAPS_pubmethodComponentRemoving(ComponentEventArgs^)

Receives a call from the UndoEngine in response to a ComponentRemoving event.

System_CAPS_pubmethodComponentRename(ComponentRenameEventArgs^)

Receives a call from the UndoEngine in response to a ComponentRename event.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetService(Type^)

Gets an instance of the requested service.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a String that represents the current name of the unit.(Overrides Object::ToString().)

System_CAPS_pubmethodUndo()

Performs an undo or redo action.

System_CAPS_protmethodUndoCore()

Called by Undo to perform an undo action.

The UndoEngine::UndoUnit class is a nested class within UndoEngine that encapsulates an action that a user can undo. The default UndoEngine::UndoUnit implementation monitors change notifications and builds up a list of events for each change. It saves these events using IDesignerSerializationService. An UndoEngine::UndoUnit receives event notifications for changes directly from UndoEngine through several publicvirtual methods. You can derive from UndoEngine::UndoUnit and perform any additional logic. If desired, you can completely bypass the default UndoEngine::UndoUnit implementation.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: