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(); } |
|