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

定義

最新の取り消しコマンドを取り消します。Undoes the most recent undo command. つまり、undo スタックの最新の 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。それ以外の場合は falsetrue if the redo operation was successful; otherwise, false. 使用できる取り消しコマンドがない場合 (undo スタックが空の場合) には false が返されます。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

適用対象

こちらもご覧ください