/// <summary> /// Inserts an image floating to the right. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="imageSource">A <see cref="String"/> representing the image source value.</param> public static void InsertImageFloatRight(this IHtmlText htmlText, string imageSource) { htmlText.InsertImage(imageSource, "right"); }
/// <summary> /// Inserts an image floating to the right. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="imageSource">A <see cref="String"/> representing the image source value.</param> /// <param name="maxHeight">The maximum height of the image.</param> /// <param name="maxWidth">The maximum width of the image.</param> public static void InsertImageFloatRight(this IHtmlText htmlText, string imageSource, string maxHeight, string maxWidth) { htmlText.InsertImage(imageSource, "right", maxHeight, maxWidth); }
/// <summary> /// Inserts an inlined image. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="imageSource">A <see cref="String"/> representing the image source value.</param> public static void InsertImage(this IHtmlText htmlText, string imageSource) { htmlText.InsertImage(imageSource, null, null, null); }
/// <summary> /// Inserts an inlined image. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="imageSource">A <see cref="String"/> representing the image source value.</param> /// <param name="alignment">A <see cref="String"/> representing the image's alignment.</param> private static void InsertImage(this IHtmlText htmlText, string imageSource, string alignment) { htmlText.InsertImage(imageSource, alignment, null, null); }
/// <summary> /// Inserts an inlined image. /// </summary> /// <param name="htmlText">An <see cref="IHtmlText"/> representing the HTML control.</param> /// <param name="imageSource">A <see cref="String"/> representing the image source value.</param> /// <param name="maxHeight">The maximum height of the image.</param> /// <param name="maxWidth">The maximum width of the image.</param> public static void InsertImage(this IHtmlText htmlText, string imageSource, string maxHeight, string maxWidth) { htmlText.InsertImage(imageSource, null, maxHeight, maxWidth); }