コード例 #1
0
ファイル: TextBox.cs プロジェクト: kroll-software/SummerGUI
 public void Copy()
 {
     if (!CanCopy)
     {
         return;
     }
     PlatformExtensions.SetClipboardText(SelectedText);
     Modified = true;
 }
コード例 #2
0
 public void InitCopyButton()
 {
     CopyButton        = ImagePanelContainer.AddChild(new Button("copy", "Copy", (char)FontAwesomeIcons.fa_copy, ColorContexts.Default));
     CopyButton.Dock   = Docking.Bottom;
     CopyButton.Margin = new Padding(6, 0, 6, 6);
     CopyButton.Click += delegate {
         PlatformExtensions.SetClipboardText(Message);
     };
 }
コード例 #3
0
        public void Copy()
        {
            if (!CanCopy)
            {
                return;
            }
            string content = RowManager.GetCharRange(SelStart, SelLength);

            PlatformExtensions.SetClipboardText(content);
            Modified = true;
        }
コード例 #4
0
ファイル: TextBox.cs プロジェクト: kroll-software/SummerGUI
        // *** ISupportsClipboard Implementationn ***

        // ToDo:

        public void Cut()
        {
            if (!CanCut)
            {
                return;
            }
            this.SetUndoDelete(CursorPosition, 0);
            PlatformExtensions.SetClipboardText(SelectedText);
            Text = Text.Remove(SelStart, SelLength);
            ResetSelection();
            Modified = true;
            Invalidate();
        }
コード例 #5
0
        // *** Clipboard ***

        public void Cut()
        {
            if (!CanCut)
            {
                return;
            }

            int pos = RowManager.AbsCursorPosition;

            this.SetUndoDelete(pos, 0);

            string content = RowManager.GetCharRange(SelStart, SelLength);

            DeleteSelection();
            PlatformExtensions.SetClipboardText(content);
            ResetSelection();
            Invalidate();
        }