UndoEngine.DiscardUndoUnit(UndoEngine+UndoUnit) 方法

定义

protected:
 virtual void DiscardUndoUnit(System::ComponentModel::Design::UndoEngine::UndoUnit ^ unit);
protected virtual void DiscardUndoUnit (System.ComponentModel.Design.UndoEngine.UndoUnit unit);
abstract member DiscardUndoUnit : System.ComponentModel.Design.UndoEngine.UndoUnit -> unit
override this.DiscardUndoUnit : System.ComponentModel.Design.UndoEngine.UndoUnit -> unit
Protected Overridable Sub DiscardUndoUnit (unit As UndoEngine.UndoUnit)

参数

unit
UndoEngine.UndoUnit

要放弃的单元。

注解

DiscardUndoUnit 调用 方法之前,将关闭撤消单元,然后撤消。

适用于

另请参阅