New to Telerik UI for WinForms? Start a free 30-day trial

Stores the checked-list items used by a RadCheckedDropDownListElement.

Definition

Constructors

Initializes the checked-item collection over the specified list data layer and owner element.

C#
public RadCheckedListDataItemCollection(RadCheckedDropDownListElement owner, ListDataLayer dataLayer, RadListElement ownerListElement)
Parameters:ownerRadCheckedDropDownListElement

The checked drop-down list element associated with the collection.

dataLayerListDataLayer

The data layer that supplies the list items.

ownerListElementRadListElement

The list element that hosts the items.

Properties

Gets or replaces the checked-list item at the specified position.

C#
public RadCheckedListDataItem this[int index] { get; set; }
Parameters:indexint

The zero-based item position.

Methods

Adds an existing checked-list item to the collection.

C#
public void Add(RadCheckedListDataItem item)
Parameters:itemRadCheckedListDataItem

The checked-list item to add.

Creates an item with the specified text and checked state and adds it to the collection.

C#
public void Add(string text, bool check)
Parameters:textstring

The text displayed for the new item.

checkbool

The initial checked state.

Creates an unchecked item with the specified text and adds it to the collection.

C#
public override void Add(string text)
Parameters:textstring

The text displayed for the new item.

Overrides: RadListDataItemCollection.Add(string)

Creates an unchecked item for each supplied string and adds the items to the collection.

C#
public override void AddRange(IEnumerable<string> textStrings)
Parameters:textStringsIEnumerable<string>

The display text for the new items.

Overrides: RadListDataItemCollection.AddRange(IEnumerable<string>)

Creates an unchecked item by copying the text, value, tag, height, images, and text-layout settings from a list item.

C#
protected virtual RadCheckedListDataItem CreateCheckedListDataItem(RadListDataItem item)
Parameters:itemRadListDataItem

The source item to copy.

Returns:

RadCheckedListDataItem

The checked-list item to insert into the collection.