UndoEngine.CreateUndoUnit(String, Boolean) Método

Definición

Crea un nuevo UndoEngine.UndoUnit.

protected:
 virtual System::ComponentModel::Design::UndoEngine::UndoUnit ^ CreateUndoUnit(System::String ^ name, bool primary);
protected virtual System.ComponentModel.Design.UndoEngine.UndoUnit CreateUndoUnit (string name, bool primary);
protected virtual System.ComponentModel.Design.UndoEngine.UndoUnit CreateUndoUnit (string? name, bool primary);
abstract member CreateUndoUnit : string * bool -> System.ComponentModel.Design.UndoEngine.UndoUnit
override this.CreateUndoUnit : string * bool -> System.ComponentModel.Design.UndoEngine.UndoUnit
Protected Overridable Function CreateUndoUnit (name As String, primary As Boolean) As UndoEngine.UndoUnit

Parámetros

name
String

Nombre de la unidad que se va a crear.

primary
Boolean

Es true para crear la primera de una serie de unidades anidadas; es false para crear unidades anidadas subsiguientes.

Devoluciones

Un nuevo UndoEngine.UndoUnit con un nombre especificado.

Comentarios

La implementación predeterminada del CreateUndoUnit método simplemente devuelve un nuevo UndoEngine.UndoUnit.

De forma predeterminada, UndoEngine no hace nada con el primary parámetro , pero algunas implementaciones de deshacer, como las que implican el patrón de diseño COM Microsoft.VisualStudio.OLE.Interop.IOleParentUndoUnit , pueden necesitar identificar la diferencia entre una unidad principal y sus elementos secundarios.

Se aplica a