SelectListItem.Text Property

Gets or sets the text that is used to display the SelectListItem instance on a web page.

Namespace:  System.Web.WebPages.Html
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Property Text As String 
    Get 
    Set
'Usage
Dim instance As SelectListItem 
Dim value As String 

value = instance.Text

instance.Text = value
public string Text { get; set; }
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}
member Text : string with get, set
function get Text () : String 
function set Text (value : String)

Property Value

Type: System.String
The text that is used to display the select list item.

See Also

Reference

SelectListItem Class

System.Web.WebPages.Html Namespace