MultiSelectList MultiSelectList MultiSelectList Class

Definition

Represents a list of items that users can select more than one item from.

public class MultiSelectList : System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>
type MultiSelectList = class
    interface seq<SelectListItem>
    interface IEnumerable
Public Class MultiSelectList
Implements IEnumerable(Of SelectListItem)
Inheritance
MultiSelectListMultiSelectListMultiSelectList
Derived
Implements

Constructors

MultiSelectList(IEnumerable) MultiSelectList(IEnumerable) MultiSelectList(IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list.

MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, and the disabled values.

MultiSelectList(IEnumerable, String, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, and the selected values.

MultiSelectList(IEnumerable, String, String, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the selected values, and the disabled values.

MultiSelectList(IEnumerable, String, String, String) MultiSelectList(IEnumerable, String, String, String) MultiSelectList(IEnumerable, String, String, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the data group field.

MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, String, String, String, IEnumerable, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, the data group field, the selected values, the disabled values, and the disabled groups.

MultiSelectList(IEnumerable, String, String) MultiSelectList(IEnumerable, String, String) MultiSelectList(IEnumerable, String, String)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, and the data text field.

MultiSelectList(IEnumerable, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the selected values, the disabled values.

MultiSelectList(IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable) MultiSelectList(IEnumerable, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the specified items to include in the list and the selected values.

MultiSelectList(IEnumerable, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable) MultiSelectList(IEnumerable, String, String, IEnumerable)

Initializes a new instance of the MultiSelectList class by using the items to include in the list, the data value field, the data text field, and the selected values.

Properties

DataGroupField DataGroupField DataGroupField

Gets the data group field.

DataTextField DataTextField DataTextField

Gets or sets the data text field.

DataValueField DataValueField DataValueField

Gets or sets the data value field.

DisabledGroups DisabledGroups DisabledGroups

Gets the disabled groups.

DisabledValues DisabledValues DisabledValues

Gets the disabled values.

Items Items Items

Gets or sets the items in the list.

SelectedValues SelectedValues SelectedValues

Gets or sets the selected values.

Methods

GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that can be used to iterate through the collection.

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator can be used to iterate through a collection.

Applies to