public void Copy() { if (this.SelectionLength == 0) { return; } SystemUtilities.CopyStringToClipboard(this.SelectedText); }
private void CommandExecuted_CopyHtml(object sender, ExecutedRoutedEventArgs e) { if (this.SelectionLength == 0) { return; } string textToCopy = this.MarkdownProcessor.ConvertMarkdownToHTML(this.SelectedText); SystemUtilities.CopyStringToClipboard(textToCopy); }
public void Cut() { if (this.SelectionLength == 0) { return; } if (!SystemUtilities.CopyStringToClipboard(this.SelectedText)) { return; } this.SelectedText = string.Empty; }
public void CopyDocumentAsHtml() { string textToCopy = this.MarkdownProcessor.ConvertMarkdownToHTML(this.Editor.Text); SystemUtilities.CopyStringToClipboard(textToCopy); }