Click or drag to resize
HtmlOptionItem Class
Represents a data object that could be rendered to
<option>
HTML element.
Inheritance Hierarchy
SystemObject
  Kentico.Web.MvcHtmlOptionItem

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public class HtmlOptionItem

The HtmlOptionItem type exposes the following members.

Constructors
  NameDescription
Public methodHtmlOptionItem
Top
Properties
  NameDescription
Public propertyDisabled
Gets or sets a value that indicates whether this HtmlOptionItem is disabled. This property is typically rendered as a
disabled="disabled"
attribute in the
<option>
HTML element.
Public propertySelected
Gets or sets a value that indicates whether this HtmlOptionItem is selected. This property is typically rendered as a
selected="selected"
attribute in the
<option>
HTML element.
Public propertyText
Gets or sets a value that indicates the display text of this HtmlOptionItem. This property is typically rendered as the inner HTML in the
<option>
HTML element.
Public propertyValue
Gets or sets a value that indicates the value of this HtmlOptionItem. This property is typically rendered as a
value="..."
attribute in the
<option>
HTML element.
Top
See Also