TextBoxBase.LockCurrentUndoUnit TextBoxBase.LockCurrentUndoUnit TextBoxBase.LockCurrentUndoUnit TextBoxBase.LockCurrentUndoUnit Method

定义

锁定应用程序的撤消堆栈的最新撤消单元。Locks the most recent undo unit of the undo stack of the application. 这将阻止锁定的单元与后续添加的撤消单元合并。This prevents the locked unit from being merged with undo units that are added subsequently.

public:
 void LockCurrentUndoUnit();
public void LockCurrentUndoUnit ();
member this.LockCurrentUndoUnit : unit -> unit
Public Sub LockCurrentUndoUnit ()

注解

在将非文本撤消单元添加到应用程序的主撤消堆栈时调用此方法。Call this method when a non-text undo unit is added to the application's main undo stack. 这将阻止锁定的单元与后续添加的撤消单元合并。This prevents the locked unit from being merged with undo units that are added subsequently.

适用于

另请参阅