SelectListItem Class

Definition

Represents an item in an HTML select list.

public class SelectListItem
type SelectListItem = class
Public Class SelectListItem
Inheritance
SelectListItem

Constructors

SelectListItem()

Initializes a new instance of the SelectListItem class using the default settings.

SelectListItem(SelectListItem)

Initializes a new instance of the SelectListItem class by copying the specified select list item.

Properties

Selected

Gets or sets a value that indicates whether the SelectListItem instance is selected.

Text

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

Value

Gets or sets the value of the HTML value attribute of the HTML option element that is associated with the SelectListItem instance.

Applies to