DisplayTextExtensions Class (System.Web.Mvc.Html)

Switch View :
ScriptFree
.NET Framework Class Library
DisplayTextExtensions Class

Provides a way to render object values as HTML.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Html.DisplayTextExtensions

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

Visual Basic
<ExtensionAttribute> _
Public NotInheritable Class DisplayTextExtensions
C#
public static class DisplayTextExtensions
Visual C++
[ExtensionAttribute]
public ref class DisplayTextExtensions abstract sealed

The DisplayTextExtensions type exposes the following members.

Methods

  Name Description
Public method Static member DisplayText Returns HTML markup for each property in the object that is represented by the specified expression.
Public method Static member DisplayTextFor<TModel, TResult> Returns HTML markup for each property in the object that is represented by the specified expression.
Top
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