Skip to main content

ExtensionsFactory<ModelType>.TextBoxFor<ValueType>(Expression<Func<ModelType, ValueType>>, Action<TextBoxSettings>) Method

Creates a TextBox.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public TextBoxExtension TextBoxFor<ValueType>(
    Expression<Func<ModelType, ValueType>> expression,
    Action<TextBoxSettings> method
)

Parameters

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

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

method Action<TextBoxSettings>

A delegate method that accepts TextBoxSettings as a parameter.

Type Parameters

Name
ValueType

Returns

Type Description
TextBoxExtension

A TextBoxExtension object implementing the TextBox functionality.

See Also