System.Windows.Forms.TextBoxBase.CanUndo Property

Gets a value indicating whether the user can undo the previous operation in a text box control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool CanUndo { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If this method returns true, you can call the TextBoxBase.Undo method to undo the last operation in a text box. You can use this method in the MenuItem.Popup event of a System.Windows.Forms.MenuItem, or in code that manages the state of buttons on a System.Windows.Forms.ToolBar to enable or disable the ability to undo the previous operation in a text box control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0