C# 클래스 Candor.Web.Mvc.HtmlHelperExtension

Various extensions to the HtmlHelper class.
파일 보기 프로젝트 열기: michael-lang/candor-common

공개 메소드들

메소드 설명
ActionImageTag ( this helper, System.Web.Mvc.ActionResult result, string imageFileName, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.

ActionImageTag ( this helper, string action, string controllerName, string imageFileName ) : System.Web.Mvc.MvcHtmlString

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.

ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues ) : System.Web.Mvc.MvcHtmlString

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.

ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.

AnonymousObjectToHtmlAttributesMvc2 ( this htmlHelper, object htmlAttributes ) : RouteValueDictionary

An enhancement to the MVC3 same named method that takes into account other dictionary types not being double decoded.

ImageTag ( this helper, string fileName ) : System.Web.Mvc.MvcHtmlString

Generates an html image tag using the specified image fileName and any other html attributes to be applied to the image tag.

ImageTag ( this helper, string fileName, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates an html image tag using the specified image fileName and any other html attributes to be applied to the image tag.

메소드 상세

ActionImageTag() 공개 정적인 메소드

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
public static ActionImageTag ( this helper, System.Web.Mvc.ActionResult result, string imageFileName, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
result System.Web.Mvc.ActionResult An IT4MVCActionResult from a T4 MVC action method used to help build urls.
imageFileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
anchorHtmlAttributes object A dynamic object with name and value pairs for the anchor tag. Example: new {data-custom1="abc", @class="large"}
imageHtmlAttributes object A dynamic object with name and value pairs for the image tag. Example: new {data-custom1="abc", @class="large"}
리턴 System.Web.Mvc.MvcHtmlString

ActionImageTag() 공개 정적인 메소드

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
public static ActionImageTag ( this helper, string action, string controllerName, string imageFileName ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
action string The action method to navigate to when the image link is clicked.
controllerName string The controller containing the action method to navigate to when the image link is clicked.
imageFileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
리턴 System.Web.Mvc.MvcHtmlString

ActionImageTag() 공개 정적인 메소드

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
public static ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
action string The action method to navigate to when the image link is clicked.
controllerName string The controller containing the action method to navigate to when the image link is clicked.
imageFileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
routeValues object Any extra route values required by the action method. Example: new {id=5}
리턴 System.Web.Mvc.MvcHtmlString

ActionImageTag() 공개 정적인 메소드

Generates an anchor tag (link) with an image inside such that the image when clicked follows the specified MVC route.
public static ActionImageTag ( this helper, string action, string controllerName, string imageFileName, object routeValues, object anchorHtmlAttributes, object imageHtmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
action string The action method to navigate to when the image link is clicked.
controllerName string The controller containing the action method to navigate to when the image link is clicked.
imageFileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
routeValues object Any extra route values required by the action method. Example: new {id=5}
anchorHtmlAttributes object A dynamic object with name and value pairs for the anchor tag. Example: new {data-custom1="abc", @class="large"}
imageHtmlAttributes object A dynamic object with name and value pairs for the image tag. Example: new {data-custom1="abc", @class="large"}
리턴 System.Web.Mvc.MvcHtmlString

AnonymousObjectToHtmlAttributesMvc2() 공개 정적인 메소드

An enhancement to the MVC3 same named method that takes into account other dictionary types not being double decoded.
public static AnonymousObjectToHtmlAttributesMvc2 ( this htmlHelper, object htmlAttributes ) : RouteValueDictionary
htmlHelper this
htmlAttributes object An anonymous object, RouteValueDictionary, or IDictionary of string,object.
리턴 RouteValueDictionary

ImageTag() 공개 정적인 메소드

Generates an html image tag using the specified image fileName and any other html attributes to be applied to the image tag.
public static ImageTag ( this helper, string fileName ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
fileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
리턴 System.Web.Mvc.MvcHtmlString

ImageTag() 공개 정적인 메소드

Generates an html image tag using the specified image fileName and any other html attributes to be applied to the image tag.
public static ImageTag ( this helper, string fileName, object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
helper this The class being extended with this method.
fileName string The file name of the image including full relative path. Recommend coming from T4MVC Links property.
htmlAttributes object A dynamic object with name and value pairs. Example: new {data-custom1="abc", @class="large"}
리턴 System.Web.Mvc.MvcHtmlString