Примеры использования:
RTFBuilderbase sb = new RTFBuilder();
sb.AppendLine("AppendLine Basic Text");
sb.Append("append text1").Append("append text2").Append("append text3").Append("append text4").AppendLine();
sb.FStyle(FontStyle.Bold).AppendLine("Bold");
sb.FStyle(FontStyle.Italic).AppendLine("Italic");
sb.FStyle(FontStyle.Strikeout).AppendLine("Strikeout");
sb.FStyle(FontStyle.Underline).AppendLine("Underline");
sb.FStyle(FontStyle.Bold | FontStyle.Italic | FontStyle.Strikeout | FontStyle.Underline).AppendLine("Underline/Bold/Italic/Underline");
sb.ForeColor(KnownColor.Red).AppendLine("ForeColor Red");
sb.BackColor(KnownColor.Yellow).AppendLine("BackColor Yellow");
string rtf = sb.ToString();
this.richTextBox1.Rtf = rtf.
// Merging an RTF Document is sublimely simple
sb.AppendRTFDocument(this.richTextBox4.Rtf);
//Inserting an Image - again very simple
sb.InsertImage(image);
Комментариев нет:
Отправить комментарий