//public static TextRange Indent(this System.Windows.Controls.RichTextBox myOutput)
        //{
        //    //myOutput.AppendText(text + "\r");
        //    //myOutput.Document.Blocks.Add(new Paragraph(new Run(text + "\r")));
        //    return  myOutput.AppendRange("   ");
        //}



        public static void AppendHeaderLine(this System.Windows.Controls.RichTextBox myOutput, string text)
        {
            myOutput.AppendLine();
            myOutput.AppendRange(text + "\n").Bold().Size("14pt");
            myOutput.AppendLine("=======================");
            //var inline = new Run();

            //myOutput.Document.Blocks.Add( new Paragraph( new Bold( new Underline( new Run( text + "\r")))));
        }
Exemplo n.º 2
0
 public static void AppendLine(this System.Windows.Controls.RichTextBox myOutput, string text)
 {
     //myOutput.AppendText(text + "\r");
     //myOutput.Document.Blocks.Add(new Paragraph(new Run(text + "\r")));
     myOutput.AppendLine(text, "Black");
 }