TextBoxBase.Redo TextBoxBase.Redo TextBoxBase.Redo TextBoxBase.Redo Method

定義

最新の undo コマンドを元に戻します。Undoes the most recent undo command. つまり、最新の undo 単位を元に戻すスタックをやり直します。In other words, redoes the most recent undo unit on the undo stack.

public:
 bool Redo();
public bool Redo ();
member this.Redo : unit -> bool
Public Function Redo () As Boolean

戻り値

true やり直し操作が成功した場合それ以外の場合、falseします。true if the redo operation was successful; otherwise, false. このメソッドが戻るfalse(undo スタックが空の) 使用できる取り消しコマンドがない場合。This method returns false if there is no undo command available (the undo stack is empty).

Redo メソッドの使用方法を次の例に示します。The following example demonstrates how to use the Redo method.

private void redoAction(object sender, RoutedEventArgs e)
{
    if (myTextBox.CanRedo == true)
    {
        myTextBox.Redo();
    }
}
Private Sub redoAction(ByVal sender As Object, ByVal e As RoutedEventArgs)

    If myTextBox.CanRedo = True Then
        myTextBox.Redo()
    Else : Return
    End If
End Sub

適用対象

こちらもご覧ください