HtmlHelperExtensions.ListBox Method (HtmlHelper, String, IEnumerable<SelectListItem>, String, String, Boolean, String, String, Nullable<Int32>, String, Nullable<Int32>, String)
Namespace: Microsoft.Web.Mvc.Html
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static MvcHtmlString ListBox(
this HtmlHelper htmlHelper,
string name,
IEnumerable<SelectListItem> selectList = null,
string cssClass = null,
string dir = null,
bool disabled = false,
string id = null,
string lang = null,
Nullable<int> size = null,
string style = null,
Nullable<int> tabIndex = null,
string title = null
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ListBox(
HtmlHelper^ htmlHelper,
String^ name,
IEnumerable<SelectListItem^>^ selectList = null,
String^ cssClass = null,
String^ dir = null,
bool disabled = false,
String^ id = null,
String^ lang = null,
Nullable<int> size = null,
String^ style = null,
Nullable<int> tabIndex = null,
String^ title = null
)
static member ListBox :
htmlHelper:HtmlHelper *
name:string *
selectList:IEnumerable<SelectListItem> = null *
cssClass:string = null *
dir:string = null *
disabled:bool = false *
id:string = null *
lang:string = null *
size:Nullable<int> = null *
style:string = null *
tabIndex:Nullable<int> = null *
title:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ListBox (
htmlHelper As HtmlHelper,
name As String,
selectList As IEnumerable(Of SelectListItem),
cssClass As String,
dir As String,
disabled As Boolean,
id As String,
lang As String,
size As Nullable(Of Integer),
style As String,
tabIndex As Nullable(Of Integer),
title As String
) As MvcHtmlString
Parameters
- htmlHelper
Type: System.Web.Mvc.HtmlHelper
- name
Type: System.String
- selectList
Type: System.Collections.Generic.IEnumerable<SelectListItem>
- cssClass
Type: System.String
- dir
Type: System.String
- disabled
Type: System.Boolean
- id
Type: System.String
- lang
Type: System.String
- size
Type: System.Nullable<Int32>
- style
Type: System.String
- tabIndex
Type: System.Nullable<Int32>
- title
Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlString
See Also
HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace
Return to top