DisplayTextExtensions.DisplayText(HtmlHelper, String) Method

Definition

Returns HTML markup for each property in the object that is represented by the specified expression.

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

Parameters

html
HtmlHelper

The HTML helper instance that this method extends.

name
String

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

Returns

The HTML markup for each property in the object that is represented by the expression.

Applies to