title: How do I cut, copy, paste and select all in a TextView control?
body: <p>I'm trying to cut, copy, paste and select all with the TextView Gtk control. Why the TextView control? Cause I can't seem to get the bloody TextEditor control to go multiline!</p>
  
  <p>Anyway... How do I:</p>
  
  <p><strong>Cut</strong> text from the TextView control?</p>
  
  <p><strong>Copy</strong> text from the TextView control?</p>
  
  <p><strong>Paste</strong> text into the TextView control?</p>
  
  <p><strong>Select All</strong> text in the TextView control?</p>
  
  <p><hr/>
  Here's what I've tried:
  1 hour of googling.</p>
  
  <p>and this:</p>
  
  <pre><code>TextView tv = ...;
  TextIter start, end;
  if (tv.Buffer.GetSelectionBounds(start, end)) {
    String selected = tv.Buffer.GetText(start, end);
    Clipboard clipboard = tv.GetClipboard(Gdk.Selection.Clipboard);
    clipboard.Text = selected;
  }
  </code></pre>
  
  <p>from: <a href="https://stackoverflow.com/questions/26308501/gtk-textview-copy-and-paste">https://stackoverflow.com/questions/26308501/gtk-textview-copy-and-paste</a> - but that obviously doesn't work (hence my question).</p>
  
  <p>I've also found this: <a href="http://docs.go-mono.com/?link=T%3aGtk.TextView" rel="nofollow noreferrer">http://docs.go-mono.com/?link=T%3aGtk.TextView</a> The Mono GTK C# docs. There is so much stuff that just seems to be non-existent.</p>