예제 #1
0
 public void Copy()
 {
     if (this.SelectionLength == 0)
     {
         return;
     }
     SystemUtilities.CopyStringToClipboard(this.SelectedText);
 }
예제 #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);
        }
예제 #3
0
 public void Cut()
 {
     if (this.SelectionLength == 0)
     {
         return;
     }
     if (!SystemUtilities.CopyStringToClipboard(this.SelectedText))
     {
         return;
     }
     this.SelectedText = string.Empty;
 }
예제 #4
0
        public void CopyDocumentAsHtml()
        {
            string textToCopy = this.MarkdownProcessor.ConvertMarkdownToHTML(this.Editor.Text);

            SystemUtilities.CopyStringToClipboard(textToCopy);
        }