A newer version of this page is available. Switch to the current version.

ExtensionsFactory<ModelType>.LabelFor<ValueType>(Expression<Func<ModelType, ValueType>>) Method

Creates a Label.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public LabelExtension LabelFor<ValueType>(
    Expression<Func<ModelType, ValueType>> expression
)
Public Function LabelFor(Of ValueType)(
    expression As Expression(Of Func(Of ModelType, ValueType))
) As LabelExtension

Parameters

Name Type Description
expression Expression<Func<ModelType, ValueType>>

An expression that identifies the object that contains the properties to display.

Type Parameters

Name
ValueType

Returns

Type Description
LabelExtension

A LabelExtension object implementing the Label functionality.

See Also