Skip to main content

LabelExtensions

Assembly: ServiceStack.Razor.dll​
View Source​
Declaration
public static class LabelExtensions

Methods​

Label(HtmlHelper, String)​

View Source​
Declaration
public static MvcHtmlString Label(this HtmlHelper html, string expression)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtml
System.Stringexpression

Label(HtmlHelper, String, String)​

View Source​
Declaration
public static MvcHtmlString Label(this HtmlHelper html, string expression, string labelText)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtml
System.Stringexpression
System.StringlabelText

LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>)​

View Source​
Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>html
System.Linq.Expressions.Expression<System.Func<<TModel>,<TValue>>>expression
Type Parameters​
  • TModel
  • TValue

LabelFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String)​

View Source​
Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, string labelText)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelper<TModel>html
System.Linq.Expressions.Expression<System.Func<<TModel>,<TValue>>>expression
System.StringlabelText
Type Parameters​
  • TModel
  • TValue

LabelForModel(HtmlHelper)​

View Source​
Declaration
public static MvcHtmlString LabelForModel(this HtmlHelper html)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtml

LabelForModel(HtmlHelper, String)​

View Source​
Declaration
public static MvcHtmlString LabelForModel(this HtmlHelper html, string labelText)
Returns​

ServiceStack.Html.MvcHtmlString

Parameters​
TypeName
ServiceStack.Html.HtmlHelperhtml
System.StringlabelText