/// <summary> /// /// </summary> /// <param name="content"></param> /// <param name="option"></param> private void append(string content, RichRunOption option) { Run myRun = new Run(content); myRun.Foreground = option._Foreground; myRun.FontWeight = option._FontWeight; myRun.FontSize = option._FontSize; myRun.FontFamily = option._FontFamily; _richFlowParagraph.Inlines.Add(myRun); }
/// <summary> /// /// </summary> /// <param name="content"></param> /// <param name="option"></param> public void AppendLine(string content, RichRunOption option) { append(content + Environment.NewLine, option); }
/// <summary> /// /// </summary> /// <param name="content"></param> /// <param name="option"></param> public void Append(string content, RichRunOption option) { append(content, option); }