Udostępnij za pośrednictwem


EditorExtensions.EditorFor Method

Include Protected Members
Include Inherited Members

Returns an HTML input element for each property in the object that is represented by the Expression expression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>) Returns an HTML input element for each property in the object that is represented by the Expression expression.
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, Object) Returns an HTML input element for each property in the object that is represented by the expression, using additional view data.
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String) Returns an HTML input element for each property in the object that is represented by the Expression expression, using the specified template.
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, Object) Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and additional view data.
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String) Returns an HTML input element for each property in the object that is represented by the Expression expression, using the specified template and HTML field name.
Public methodStatic member EditorFor<TModel, TValue>(HtmlHelper<TModel>, Expression<Func<TModel, TValue>>, String, String, Object) Returns an HTML input element for each property in the object that is represented by the expression, using the specified template, HTML field name, and additional view data.

Top

See Also

Reference

EditorExtensions Class

System.Web.Mvc.Html Namespace