共用方式為


EditorExtensions Class

Represents support for the HTML input element in an application.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.EditorExtensions

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class EditorExtensions
public static class EditorExtensions
[ExtensionAttribute]
public ref class EditorExtensions abstract sealed

Methods

  Name Description
Public methodStatic member Editor(HtmlHelper, String) Returns an HTML input element for each property in the object that is represented by the expression.
Public methodStatic member Editor(HtmlHelper, String, 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 Editor(HtmlHelper, String, String) Returns an HTML input element for each property in the object that is represented by the expression, using the specified template.
Public methodStatic member Editor(HtmlHelper, String, 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 Editor(HtmlHelper, String, String, String) Returns an HTML input element for each property in the object that is represented by the expression, using the specified template and HTML field name.
Public methodStatic member Editor(HtmlHelper, String, 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.
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.
Public methodStatic member EditorForModel(HtmlHelper) Returns an HTML input element for each property in the model.
Public methodStatic member EditorForModel(HtmlHelper, Object) Returns an HTML input element for each property in the model, using additional view data.
Public methodStatic member EditorForModel(HtmlHelper, String) Returns an HTML input element for each property in the model, using the specified template.
Public methodStatic member EditorForModel(HtmlHelper, String, Object) Returns an HTML input element for each property in the model, using the specified template and additional view data.
Public methodStatic member EditorForModel(HtmlHelper, String, String) Returns an HTML input element for each property in the model, using the specified template name and HTML field name.
Public methodStatic member EditorForModel(HtmlHelper, String, String, Object) Returns an HTML input element for each property in the model, using the template name, HTML field name, and additional view data.

Top

Examples

A Visual Studio project with source code is available to accompany this topic: Download.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc.Html Namespace