RichTextBox for UWP | ComponentOne
Working with RichTextBox for UWP / Menus and Commands / Creating Custom Command Bars / Document History Functions
In This Topic
    Document History Functions
    In This Topic

    The following snippets demonstrates the code used to create document history functions:

    Undo

    C#
    Copy Code
    if (rtb.DocumentHistory.CanUndo)
    {
        rtb.DocumentHistory.Undo();
    }
    

     

    Redo

    C#
    Copy Code
    if (rtb.DocumentHistory.CanRedo)
    {
        rtb.DocumentHistory.Redo();
    }