C# Класс Castle.MonoRail.Framework.Helpers.FormHelper.CheckboxList

This class is an enumerable list of checkboxes. It uses the OperationState to manage the sets and to control the check/uncheck state.
Наследование: IEnumerable, IEnumerator
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckboxList ( FormHelper helper, string target, object initialSelectionSet, IEnumerable dataSource, IDictionary attributes ) : System

Initializes a new instance of the CheckboxList class.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Item ( ) : string

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)

Item ( string id ) : string

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)

MoveNext ( ) : bool

Advances the enumerator to the next element of the collection.

Reset ( ) : void

Sets the enumerator to its initial position, which is before the first element in the collection.

Описание методов

CheckboxList() публичный Метод

Initializes a new instance of the CheckboxList class.
public CheckboxList ( FormHelper helper, string target, object initialSelectionSet, IEnumerable dataSource, IDictionary attributes ) : System
helper FormHelper The helper.
target string The object to get the value from and to be based on to create the element name.
initialSelectionSet object The initial selection set.
dataSource IEnumerable The set of available elements
attributes IDictionary Attributes for the FormHelper method and for the html element it generates
Результат System

GetEnumerator() публичный Метод

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

Item() публичный Метод

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)
public Item ( ) : string
Результат string

Item() публичный Метод

Outputs the Checkbox in the correct state (checked/unchecked) based on the Set. FormHelper.CreateCheckboxList(string,IEnumerable,IDictionary)
public Item ( string id ) : string
id string The element id
Результат string

MoveNext() публичный Метод

Advances the enumerator to the next element of the collection.
The collection was modified after the enumerator was created.
public MoveNext ( ) : bool
Результат bool

Reset() публичный Метод

Sets the enumerator to its initial position, which is before the first element in the collection.
The collection was modified after the enumerator was created.
public Reset ( ) : void
Результат void