예제 #1
0
 /// <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");
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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);
 }