TextBoxBase.UndoLimit 屬性

定義

取得或設定復原佇列中儲存的動作數目。

public:
 property int UndoLimit { int get(); void set(int value); };
public int UndoLimit { get; set; }
member this.UndoLimit : int with get, set
Public Property UndoLimit As Integer

屬性值

復原佇列中儲存的動作數目。 預設值為 -1,這表示復原佇列僅限於可用的記憶體。

例外狀況

在呼叫 UndoLimit 之後和呼叫 BeginChange() 之前,設定 EndChange()

備註

設定 UndoLimit 會清除復原佇列。 當 設定為 -1 時 UndoLimit ,復原佇列只會受限於可用的記憶體。 當 設定為 0 時 UndoLimit ,會在 上 TextBoxBase 停用復原。

UndoLimit.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於