// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNet.Mvc.Rendering { /// /// Represents an item in a or . /// This class is typically rendered as an HTML <option> element with the specified /// attribute values. /// public class SelectListItem { /// /// Gets or sets a value that indicates whether this is disabled. /// This property is typically rendered as a disabled="disabled" attribute in the HTML /// <option> element. /// public bool Disabled { get; set; } /// /// Represents the optgroup HTML element this item is wrapped into. /// In a select list, multiple groups with the same name are supported. /// They are compared with reference equality. /// public SelectListGroup Group { get; set; } /// /// Gets or sets a value that indicates whether this is selected. /// This property is typically rendered as a selected="selected" attribute in the HTML /// <option> element. /// public bool Selected { get; set; } /// /// Gets or sets a value that indicates the display text of this . /// This property is typically rendered as the inner HTML in the HTML <option> element. /// public string Text { get; set; } /// /// Gets or sets a value that indicates the value of this . /// This property is typically rendered as a value="..." attribute in the HTML /// <option> element. /// public string Value { get; set; } } }