Exemple #1
0
 public static MvcHtmlString RenderPicture(this HtmlHelper helper, IPictureElement picture)
 {
     return(new MvcHtmlString(picture.ToString()));
 }
 /// <summary>
 /// Returns the html of picture element with sources and attributes.
 /// </summary>
 /// <param name="helper"></param>
 /// <param name="picture"></param>
 /// <returns></returns>
 public static IHtmlString RenderPicture(this HtmlHelper helper, IPictureElement picture) {
     return new HtmlString(picture.ToString());
 }
Exemple #3
0
 /// <summary>
 /// Convert to HtmlString
 /// </summary>
 /// <param name="picture"></param>
 /// <returns>Picture element as HtmlString</returns>
 public static IHtmlString Html(this IPictureElement picture)
 {
     return(new HtmlString(picture.ToString()));
 }
Exemple #4
0
 public static void RenderHere(this IPictureElement picture)
 {
     HttpContext.Current.Response.Output.WriteLine(picture.ToString());
 }