Share via


DropDownList.OptionLabel Property

 

Gets or sets the default option in the drop down list.

Namespace:   Microsoft.Web.Mvc.Controls
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

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

Property Value

Type: System.String

The default option in the drop down list.

See Also

DropDownList Class
Microsoft.Web.Mvc.Controls Namespace

Return to top