TextBoxBase.Redo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
還原最近的復原指令。 換句話說,就是重新做復原堆疊中最近的復原單元。
public:
bool Redo();
public bool Redo();
member this.Redo : unit -> bool
Public Function Redo () As Boolean
傳回
true如果重做操作成功;否則,。 false 若沒有復原指令可用(復原堆疊為空),此方法會回傳 false 。
範例
以下範例示範如何使用此 Redo 方法。
private void redoAction(object sender, RoutedEventArgs e)
{
if (myTextBox.CanRedo)
{
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