Share via


TagBuilder.AddCssClass Method

Adds the specified CSS class to the tag-builder attributes.

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

Syntax

'Declaration
Public Sub AddCssClass ( _
    value As String _
)
public void AddCssClass(
    string value
)
public:
void AddCssClass(
    String^ value
)

Parameters

See Also

Reference

TagBuilder Class

System.Web.Mvc Namespace