CanRedo Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Informs whether an operation can be re-done using the Redo method.
Syntax
public bool CanRedo { get; }Public ReadOnly Property CanRedo As BooleanExamples
The following XAML example shows how to bind the CanRedo property to the IsEnabled attribute of a menu item.
<MenuItem
Header="Redo"
Command="ApplicationCommands.Redo"
IsEnabled="{Binding ElementName=textControl1, Path=CanRedo}" />The following example checks can redo before performing the related operation.
if (textControl.CanRedo)
{
textControl.Redo();
}If textControl.CanRedo Then
textControl.Redo()
End IfLimitations
Runtime only.
Read only.