ExtensionsFactory<ModelType>.LabelFor<ValueType>(Expression<Func<ModelType, ValueType>>, Action<LabelSettings>) Method
Creates a Label.
Namespace: DevExpress.Web.Mvc.UI
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public LabelExtension LabelFor<ValueType>(
Expression<Func<ModelType, ValueType>> expression,
Action<LabelSettings> method
)
Parameters
Name | Type | Description |
---|---|---|
expression | Expression<Func<ModelType, ValueType>> | An expression that identifies the object that contains the properties to display. |
method | Action<LabelSettings> | A delegate method that accepts LabelSettings as a parameter. |
Type Parameters
Name |
---|
ValueType |
Returns
Type | Description |
---|---|
LabelExtension | A LabelExtension object implementing the Label functionality. |
See Also