summaryM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)

Namespace: DotNetNuke.Web.Mvc.Helpers
Assembly: DotNetNuke.Web.Mvc (in DotNetNuke.Web.Mvc.dll)

Syntax

C#
public static MvcHtmlString EditorFor<TModel, TValue>(
	this DnnHtmlHelper<TModel> html,
	Expression<Func<TModel, TValue>> expression,
	string templateName,
	Object additionalViewData
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function EditorFor(Of TModel, TValue) ( 
	html As DnnHtmlHelper(Of TModel),
	expression As Expression(Of Func(Of TModel, TValue)),
	templateName As String,
	additionalViewData As Object
) As MvcHtmlString

Parameters

html
Type: DotNetNuke.Web.Mvc.Helpers..::..DnnHtmlHelper<(Of <(<'TModel>)>)>
paramhtmlM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)
expression
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'TModel, TValue>)>)>>)>)>
paramexpressionM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)
templateName
Type: System..::..String
paramtemplateNameM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)
additionalViewData
Type: System..::..Object
paramadditionalViewDataM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)

Type Parameters

TModel
typeparamTModelM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)
TValue
typeparamTValueM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)

Return Value

returnsM:DotNetNuke.Web.Mvc.Helpers.HtmlEditorExtensions.EditorFor``2(DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper{``0},System.Linq.Expressions.Expression{System.Func{``0,``1}},System.String,System.Object)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DnnHtmlHelper<(Of <(<'TModel>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

See Also