共用方式為


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 方法之前,復原單位會關閉,然後復原。

適用於

另請參閱