コード例 #1
0
ファイル: MigraDocHelpers.cs プロジェクト: GorelH/Invoicer
 public static Paragraph AddParagraph(this Cell cell, string text, ParagraphAlignment align, string style = null)
 {
     return cell.AddParagraph().AddText(text, align, style);
 }
コード例 #2
0
ファイル: HtmlExtensions.cs プロジェクト: Shojy/MigraDocUtils
 /// <summary>
 /// The add html text.
 /// </summary>
 /// <param name="section">The section.</param>
 /// <param name="html">The html.</param>
 /// <returns>The <see cref="FormattedText" />.</returns>
 public static Paragraph AddHtmlText(this Section section, string html)
 {
     return section.AddParagraph();
 }
コード例 #3
0
ファイル: MigraDocHelpers.cs プロジェクト: GorelH/Invoicer
 public static Paragraph AddParagraph(this TextFrame frame, string text, ParagraphAlignment align, string style = null)
 {
     return frame.AddParagraph().AddText(text, align, style);
 }