csharp wpf get clipboard text

Code Example - csharp wpf get clipboard text

                
                        //for wpf
using System.Windows;

Clipboard.GetText() //gets Text as string
Clipboard.SetText("hello"); //sets Clipboard to "hello"