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

Stores the additional values associated with a ListViewDataItem, typically used to supply values for the item's details-view columns.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewSubDataItemCollection : IList, ICollection, IEnumerable

Inheritance: objectListViewSubDataItemCollection

Implements: ICollectionIEnumerableIList

Constructors

Creates a sub-item value collection for the specified list view item.

C#
public ListViewSubDataItemCollection(ListViewDataItem owner)
Parameters:ownerListViewDataItem

The item associated with this collection.

Properties

Gets the number of sub-item values stored in the collection.

C#
public int Count { get; }

Implements: ICollection.Count

Gets whether the collection has a fixed size. It can grow or shrink as values are added or removed.

C#
public bool IsFixedSize { get; }

Implements: IList.IsFixedSize

Gets whether the collection is read-only. Values can be added, replaced, or removed.

C#
public bool IsReadOnly { get; }

Implements: IList.IsReadOnly

Gets whether access to the underlying value list is synchronized.

C#
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets the synchronization object used by the underlying value list.

C#
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

Gets or replaces a sub-item value. A read with an index outside the current range returns Empty; a write outside that range is ignored.

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

The zero-based position of the value.

Property Value:

The value at the specified position, or an empty string when the index is outside the current range.

Implements: IList.this[int]

Methods

Appends a value and returns its new position in the sub-item list.

C#
public int Add(object value)
Parameters:valueobject

The value to append.

Returns:

int

The zero-based position assigned to the value.

Implements: IList.Add(object)

Removes all sub-item values from the collection.

C#
public void Clear()

Implements: IList.Clear()

Determines whether the collection contains the specified value.

C#
public bool Contains(object value)
Parameters:valueobject

The value to locate.

Returns:

bool

true if the value is present; otherwise, false.

Implements: IList.Contains(object)

Copies the sub-item values into an array.

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

The destination array.

indexint

The zero-based destination index at which copying begins.

Implements: ICollection.CopyTo(Array, int)

Enumerates the stored sub-item values.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An enumerator over the values in this collection.

Implements: IEnumerable.GetEnumerator()

Finds the first position of the specified value.

C#
public int IndexOf(object value)
Parameters:valueobject

The value to locate.

Returns:

int

The zero-based position, or -1 if the value is not present.

Implements: IList.IndexOf(object)

Inserts a value at the specified position, shifting subsequent values to higher positions.

C#
public void Insert(int index, object value)
Parameters:indexint

The zero-based insertion position.

valueobject

The value to insert.

Implements: IList.Insert(int, object)

Removes the first occurrence of the specified value.

C#
public void Remove(object value)
Parameters:valueobject

The value to remove.

Implements: IList.Remove(object)

Removes the value at the specified position.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based position of the value to remove.

Implements: IList.RemoveAt(int)