Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-addins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs')
-rw-r--r--Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs
new file mode 100644
index 0000000..751cac7
--- /dev/null
+++ b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs
@@ -0,0 +1,16 @@
+
+using System;
+
+namespace TextEditor
+{
+
+
+ public class CutCommand: ICommand
+ {
+ public void Run ()
+ {
+ Gtk.Clipboard clipboard = Gtk.Clipboard.Get (Gdk.Atom.Intern ("CLIPBOARD", false));
+ TextEditorApp.MainWindow.View.Buffer.CutClipboard (clipboard, true);
+ }
+ }
+}