public void Copy() { if (!CanCopy) { return; } PlatformExtensions.SetClipboardText(SelectedText); Modified = true; }
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); }; }
public void Copy() { if (!CanCopy) { return; } string content = RowManager.GetCharRange(SelStart, SelLength); PlatformExtensions.SetClipboardText(content); Modified = true; }
// *** 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(); }
// *** 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(); }