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

Provides read-only access to a group's items through either its list-source view or its backing group list.

Definition

Namespace:Telerik.WinControls.UI.TreeMap

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TreeMapGroupedItemsCollection : IReadOnlyCollection<TreeMapDataItem>, IEnumerable, IDisposable

Inheritance: objectTreeMapGroupedItemsCollection

Implements: IDisposableIEnumerableIReadOnlyCollection<TreeMapDataItem>

Constructors

Initializes an empty collection backed by a new list source.

C#
public TreeMapGroupedItemsCollection()

Properties

Gets the number of items in the current view or backing group list.

C#
public int Count { get; }

Implements: IReadOnlyCollection<TreeMapDataItem>.Count

Gets or replaces the list used to supply this collection's items.

C#
protected IList<TreeMapDataItem> InnerList { get; set; }

When the list is a RadListSource<TDataItem>, reads use its collection view; other lists are read directly. Replacing a list source disposes the previous source.

Gets the item at the specified position in the current view or backing group list.

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

The zero-based position of the item.

Implements: IReadOnlyCollection<TreeMapDataItem>.this[int]

Methods

Determines whether the current view or backing group list contains the specified item.

C#
public bool Contains(TreeMapDataItem value)
Parameters:valueTreeMapDataItem

The item to locate.

Returns:

bool

true if the item is present; otherwise, false.

Implements: IReadOnlyCollection<TreeMapDataItem>.Contains(TreeMapDataItem)

Copies the current view or backing group list to an array, beginning at the specified array index.

C#
public void CopyTo(TreeMapDataItem[] array, int index)
Parameters:arrayTreeMapDataItem[]

The destination array.

indexint

The zero-based destination index at which copying begins.

Implements: IReadOnlyCollection<TreeMapDataItem>.CopyTo(TreeMapDataItem[], int)

Disposes the current inner list when it implements IDisposable.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Returns an enumerator over the current view or backing group list.

C#
public IEnumerator<TreeMapDataItem> GetEnumerator()
Returns:

IEnumerator<TreeMapDataItem>

An enumerator for this group's items.

Returns the position of an item in the current view or backing group list.

C#
public int IndexOf(TreeMapDataItem value)
Parameters:valueTreeMapDataItem

The item to locate.

Returns:

int

The item's zero-based position, or -1 if it is not present.

Implements: IReadOnlyCollection<TreeMapDataItem>.IndexOf(TreeMapDataItem)

Replaces the current list with a new list-source-backed collection view.

C#
public void ResetListSource()

If the previous list is a RadListSource<TDataItem>, it is disposed before replacement.