Share via


SelectListItem.Text Property

Gets or sets the text of the selected item.

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

Syntax

'Declaration
Public Property Text As String
    Get
    Set
public string Text { get; set; }
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}

Property Value

Type: System.String
The text.

See Also

Reference

SelectListItem Class

System.Web.Mvc Namespace