Share via


EditorExtensions.Editor Method

Definition

Overloads

Editor(HtmlHelper, String)

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

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.

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.

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.

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.

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.

Editor(HtmlHelper, String)

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

public static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression);
static member Editor : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to

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 static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression, object additionalViewData);
static member Editor : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

additionalViewData
Object

An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to

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 static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression, string templateName);
static member Editor : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String, templateName As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

templateName
String

The name of the template to use to render the object.

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to

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 static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, object additionalViewData);
static member Editor : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String, templateName As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

templateName
String

The name of the template to use to render the object.

additionalViewData
Object

An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to

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 static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, string htmlFieldName);
static member Editor : System.Web.Mvc.HtmlHelper * string * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String, templateName As String, htmlFieldName As String) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

templateName
String

The name of the template to use to render the object.

htmlFieldName
String

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to

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 static System.Web.Mvc.MvcHtmlString Editor (this System.Web.Mvc.HtmlHelper html, string expression, string templateName, string htmlFieldName, object additionalViewData);
static member Editor : System.Web.Mvc.HtmlHelper * string * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Editor (html As HtmlHelper, expression As String, templateName As String, htmlFieldName As String, additionalViewData As Object) As MvcHtmlString

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

expression
String

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

templateName
String

The name of the template to use to render the object.

htmlFieldName
String

A string that is used to disambiguate the names of HTML input elements that are rendered for properties that have the same name.

additionalViewData
Object

An anonymous object that can contain additional view data that will be merged into the ViewDataDictionary<TModel> instance that is created for the template.

Returns

An HTML input element for each property in the object that is represented by the expression.

Applies to