Esempio n. 1
0
 public void Copy()
 {
     if (this.SelectionLength == 0)
     {
         return;
     }
     SystemUtilities.CopyStringToClipboard(this.SelectedText);
 }
Esempio n. 2
0
        private void CommandExecuted_CopyHtml(object sender, ExecutedRoutedEventArgs e)
        {
            if (this.SelectionLength == 0)
            {
                return;
            }
            string textToCopy = this.MarkdownProcessor.ConvertMarkdownToHTML(this.SelectedText);

            SystemUtilities.CopyStringToClipboard(textToCopy);
        }
Esempio n. 3
0
 public void Cut()
 {
     if (this.SelectionLength == 0)
     {
         return;
     }
     if (!SystemUtilities.CopyStringToClipboard(this.SelectedText))
     {
         return;
     }
     this.SelectedText = string.Empty;
 }
Esempio n. 4
0
        public void CopyDocumentAsHtml()
        {
            string textToCopy = this.MarkdownProcessor.ConvertMarkdownToHTML(this.Editor.Text);

            SystemUtilities.CopyStringToClipboard(textToCopy);
        }