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

    The following code snippets demonstrate the code used for clipboard functions:

    Copy

    C#
    Copy Code
    rtb.ClipboardCopy();
    

     

    Paste

    C#
    Copy Code
    if (!rtb.IsReadOnly)
    {
        rtb.ClipboardPaste();
    }
    

    Cut

    C#
    Copy Code
    if (rtb.IsReadOnly)
        rtb.ClipboardCopy();
    else
    {
        rtb.ClipboardCut();
    }