OleUndoEngine::CreateUndoUnit Method (String^, Boolean)

 
Use BaseTrue

Creates a new undo unit.

Namespace:   Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

protected:
virtual UndoEngine::UndoUnit^ CreateUndoUnit(
	String^ name,
	bool primary
) override

Parameters

name
Type: System::String^

The name of the undo unit.

primary
Type: System::Boolean

true if the undo unit is primary, otherwise false.

This method also sets the returned undo unit as the latest "clean" one if the DocData object has not been modified in it. If this undo unit gets undone, these flags will be reset.

Return to top
Show: