ClassCheckedItemsCollection
A partially observable wrapper for the a hash set that contains the checked items of the RadTreeView.
Definition
Namespace:Telerik.Windows.Controls.TreeView
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class CheckedItemsCollection : ICollection<object>, IEnumerable<object>, ICollection, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged
Inheritance: objectCheckedItemsCollection
Implements:
Properties
Count
Gets the number of elements contained in the ICollection.
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Methods
Add(object)
Adding items to the CheckedItemsCollection is currently not supported, calling this method will throw an exception.
Declaration
public void Add(object item)
Parameters
item
No item will be added to the collection, regardless of the parameter.
Implements
Clear()
The collection is Readonly, calling this method will result in an exception.
Declaration
public void Clear()
Implements
Contains(object)
Determines whether the ICollection<T> contains a specific value.
Declaration
public bool Contains(object item)
Parameters
item
The object to locate in the ICollection<T>.
Returns
True if item is found in the ICollection<T>; otherwise, false.
Implements
CopyTo(Array, int)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Declaration
public void CopyTo(Array array, int index)
Parameters
array
The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.
index
The zero-based index in array at which copying begins.
Exceptions
array is null.
index is less than zero.
<code class="paramref">array</code> is multidimensional.
-or-
index is equal to or greater than the length of array.
-or-
The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.
The type of the source ICollection cannot be cast automatically to the type of the destination array.
Implements
CopyTo(object[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
Declaration
public void CopyTo(object[] array, int arrayIndex)
Parameters
array
object[]
The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndex
The zero-based index in array at which copying begins.
Exceptions
array is null.
arrayIndex is less than 0.
<code class="paramref">array</code> is multidimensional.
-or-
arrayIndex is equal to or greater than the length of array.
-or-
The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.
Implements
GetCheckedItemsOnly()
Returns the items from the collection that have a ToggleState.On and excludes items with ToggleState.Indeterminate.
Declaration
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "The method implies that the return value involves computation.")]
public IEnumerator<object> GetCheckedItemsOnly()
Returns
An enumerator that returns only the checked items which are not in indeterminate state.
GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
public IEnumerator GetEnumerator()
Returns
An IEnumerator object that can be used to iterate through the collection.
Implements
Remove(object)
The CheckedItems collection is read-only and cannot be modified.
Events
CollectionChanged
Raised when the CheckedItems change. Currently it is only raised with 'Reset' since the set of items in unordered.
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Value
Implements
PropertyChanged
Raised when a property changes on the object.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements