ComponentOne RichTextBox for WPF
Working with WPF RichTextBox / 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
    if(!rtb.IsReadOnly)
    {
        rtb.ClipboardPaste();
    }
    

    Cut

    Example Title
    Copy Code
    if(rtb.IsReadOnly)
        rtb.ClipboardCopy();
    else
    {
        rtb.ClipboardCut();
    }