Show / Hide Table of Contents

Class DnnLabelExtensions

Inheritance
object
DnnLabelExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class DnnLabelExtensions

Methods

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, IDictionary<string, object>)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, object)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, object htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string helpText)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string helpText
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string helpText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string helpText
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string, object)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string helpText, object htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string helpText
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string, string)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string labelText, string helpText)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string labelText
string helpText
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string labelText, string helpText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string labelText
string helpText
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelFor<TModel, TValue>(DnnHelper<TModel>, Expression<Func<TModel, TValue>>, string, string, object)

Declaration
public static MvcHtmlString LabelFor<TModel, TValue>(this DnnHelper<TModel> dnnHelper, Expression<Func<TModel, TValue>> expression, string labelText, string helpText, object htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
Expression<Func<TModel, TValue>> expression
string labelText
string helpText
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
TValue

LabelHelper(HtmlHelper, string, string, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString LabelHelper(HtmlHelper html, string htmlFieldName, string labelText, string helpText = null, IDictionary<string, object> htmlAttributes = null)
Parameters
Type Name Description
HtmlHelper html
string htmlFieldName
string labelText
string helpText
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString

Label<TModel>(DnnHelper<TModel>, string, string, string)

Declaration
public static MvcHtmlString Label<TModel>(this DnnHelper<TModel> dnnHelper, string expression, string labelText, string helpText)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
string expression
string labelText
string helpText
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel

Label<TModel>(DnnHelper<TModel>, string, string, string, IDictionary<string, object>)

Declaration
public static MvcHtmlString Label<TModel>(this DnnHelper<TModel> dnnHelper, string expression, string labelText, string helpText, IDictionary<string, object> htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
string expression
string labelText
string helpText
IDictionary<string, object> htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel

Label<TModel>(DnnHelper<TModel>, string, string, string, object)

Declaration
public static MvcHtmlString Label<TModel>(this DnnHelper<TModel> dnnHelper, string expression, string labelText, string helpText, object htmlAttributes)
Parameters
Type Name Description
DnnHelper<TModel> dnnHelper
string expression
string labelText
string helpText
object htmlAttributes
Returns
Type Description
MvcHtmlString
Type Parameters
Name Description
TModel
Back to top by the community, for the community... #DNNCMS