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

public string Text { get; set; }
public:
property String^ Text {
    String^ get();
    void set(String^ value);
}
member Text : string with get, set
Public Property Text As String

Property Value

Type: System.String

The text.

See Also

SelectListItem Class
System.Web.Mvc Namespace

Return to top