/// <summary> /// Appends the specified text with bold formatting, followed by a line break. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="text">A <see cref="String"/> representing the text to append.</param> public static void AppendBoldLine(this IHtmlText htmlText, string text) { htmlText.AppendBold(text); htmlText.AppendLine(); }
/// <summary> /// Appends the specified label with bold formatting and a colon, followed by the text with normal formatting, followed by a line break. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="label">A <see cref="String"/> representing the label to append with bold formatting.</param> /// <param name="text">A <see cref="String"/> representing the text to append with normal formatting.</param> public static void AppendLabeledTextLine(this IHtmlText htmlText, string label, string text) { htmlText.AppendBold(label + ":"); htmlText.AppendLine(text); }