OleUndoEngine::CreateUndoUnit Method (String^, Boolean)
Visual Studio 2015
Creates a new undo unit.
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.
Return Value
Type: System.ComponentModel.Design::UndoEngine::UndoUnit^The created UndoEngine::UndoUnit.
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.
UndoEngine::UndoUnit
OleUndoEngine
M:Microsoft.VisualStudio.Shell.Design.OleUndoEngine.Microsoft.VisualStudio.TextManager.Interop.IVsLinkedUndoClient.OnInterveningUnitBlockingLinkedUndo
IVsLinkedUndoClient
OleUndoEngine
AddUndoUnit
DiscardUndoUnit
Dispose
Microsoft.VisualStudio.Shell.Design Namespace
Supplying Undo Support to Designers
Show: