TX Text Control .NET for Windows Forms

CanRedo Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Informs whether an operation can be re-done using the Redo method.

Syntax

public bool CanRedo { get; }

Examples

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();
}

Limitations

Runtime only.

Read only.