Share via


TagBuilder.SetInnerText Method

Sets the inner text of the tag (element).

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

Syntax

'Declaration
Public Sub SetInnerText ( _
    innerText As String _
)
public void SetInnerText(
    string innerText
)
public:
void SetInnerText(
    String^ innerText
)

Parameters

  • innerText
    Type: System.String
    The inner text for the tag (element).

Remarks

The inner text is automatically HTML-encoded.

See Also

Reference

TagBuilder Class

System.Web.Mvc Namespace