TX Text Control .NET for Windows Forms Documentation

TextControl.CanUndo Property

Gets a value indicating whether the user can undo the previous operation in a Text Control.

Syntax

[C#] public bool CanUndo { get; }
[Visual Basic] Public ReadOnly Property CanUndo() As Boolean

Limitations

Runtime only.

Read only.

Example

The following XAML example shows how to bind the CanUndo property to the IsEnabled attribute of a menu item.

<MenuItem
   Header="Undo"
   Command="ApplicationCommands.Undo"
   IsEnabled="{Binding ElementName=textControl1, Path=CanUndo}" />

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now