Click or drag to resize
HierarchicalCollectionAdapter Class
This class wraps a hierarchical collection with observable collection, containing the flattened items, wrapped in HierarchicalItem. This collection doesn't track the source collection for changes.
Inheritance Hierarchy

Namespace: Telerik.Windows.Core
Assembly: Telerik.Windows.Scheduling.Core (in Telerik.Windows.Scheduling.Core.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public class HierarchicalCollectionAdapter : PropertyChangedBase, 
	IList<HierarchicalItem>, ICollection<HierarchicalItem>, IEnumerable<HierarchicalItem>, 
	IEnumerable, IDisposable, IHierarchicalItemStateObserver, IHierarchicalCollectionAdapter<HierarchicalItem>, 
	INotifyCollectionChanged, INotifyPropertyChanged, IEditableHierarchical

The HierarchicalCollectionAdapter type exposes the following members.

Constructors
  NameDescription
Public methodHierarchicalCollectionAdapter
Initializes a new instance of the HierarchicalCollectionAdapter class. It doesn't track the source hierarchical collection for changes.
Top
Methods
  NameDescription
Protected methodCreateWrapper
Public methodDispose
Protected methodDispose(Boolean)
Protected methodFinalize (Overrides ObjectFinalize.)
Protected methodGetChildren
When overridden in the inherited class, this method returns all the children of the provided item.
Public methodGetItemWrapperByItemKey
Protected methodInitializeWrapper
When overridden in the inherited class, this method is used to perform additional initializations to the newly created wrapper. It is the best place to initialize the IsExpanded and CanExpand properties. This method is called when a new wrapper is initialized. In the base method only the SourceItem is set and an event handler is hooked to the PropertyChanged event to track changes in the IsExpanded property.
Protected methodOnCollectionChanged
Protected methodOnItemPropertyChanged
Protected methodOnPropertyChanged(PropertyChangedEventArgs) (Inherited from PropertyChangedBase.)
Protected methodOnPropertyChanged(String) (Inherited from PropertyChangedBase.)
Protected methodOnPropertyChangedT(ExpressionFuncT) (Inherited from PropertyChangedBase.)
Protected methodResetSource
Protected methodSelectKeyForItem
Protected methodShouldExpandByDefault
Public methodTakeBetween
Top
Extension Methods
  NameDescription
Public Extension MethodAddRangeHierarchicalItem(IEnumerableHierarchicalItem)Overloaded.
Adds the elements from the specified collection - items to the end of the target collection.
(Defined by CollectionExtensions.)
Public Extension MethodAddRangeHierarchicalItem(IEnumerableHierarchicalItem)Overloaded.
Adds the given range of items to the current collection.
(Defined by CommonExtensions.)
Public Extension MethodAppendHierarchicalItem(IEnumerableHierarchicalItem)Overloaded.
Appends elements from two sequences.
(Defined by CollectionExtensions.)
Public Extension MethodAppendHierarchicalItem(HierarchicalItem)Overloaded.
Appends an element to a sequence.
(Defined by CollectionExtensions.)
Public Extension MethodAppendHierarchicalItem(IEnumerableHierarchicalItem)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodAppendHierarchicalItem(HierarchicalItem)Overloaded. (Defined by EnumerableExtensions.)
Public Extension MethodCloneHierarchicalItem
Clones the list.
(Defined by CommonExtensions.)
Public Extension MethodContainsAnyHierarchicalItem
Checks for the occurrence of the given items in the collection.
(Defined by CommonExtensions.)
Public Extension MethodEnsureListCountHierarchicalItem
Ensures the list has exactly the amount of items specified.
(Defined by CommonExtensions.)
Public Extension MethodEnsureListCountAtLeastHierarchicalItem
Ensures that the list contains at least the amount of specified items. If not, the given factory function will be used to add additional items till the expect count is reached.
(Defined by CommonExtensions.)
Public Extension MethodForEachHierarchicalItem
Executes the action for each item in the collection.
(Defined by CommonExtensions.)
Public Extension MethodRemoveAllHierarchicalItemOverloaded.
Removes all elements from the given collection.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveAllHierarchicalItem(PredicateHierarchicalItem)Overloaded.
Removes all elements from a collection that match the condition defined by the specified predicate.
(Defined by CollectionExtensions.)
Public Extension MethodRemoveLastHierarchicalItem
Removes the last item in the list.
(Defined by CommonExtensions.)
Public Extension MethodTakeAfterHierarchicalItem
Bypasses elements from a sequence as long as a specified condition is true and then returns the remaining elements.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBeforeHierarchicalItem
Bypasses elements from a sequence until the specified condition becomes true.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenHierarchicalItem(FuncHierarchicalItem, Boolean, FuncHierarchicalItem, Boolean)Overloaded.
Bypasses elements from a sequence as long as the first condition is false. Returns elements from the remaining elements as long the second condition is false.
(Defined by CollectionExtensions.)
Public Extension MethodTakeBetweenHierarchicalItem(HierarchicalItem, HierarchicalItem)Overloaded.
Returns elements from a sequence as long as they are between the two items.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromHierarchicalItem(FuncHierarchicalItem, Boolean)Overloaded.
Bypasses elements from a sequence as long as a specified condition is false and then returns the element that satisfies the condition and the elements after.
(Defined by CollectionExtensions.)
Public Extension MethodTakeFromHierarchicalItem(HierarchicalItem)Overloaded.
Bypasses elements from a sequence as long as the element is not equal to the items in the sequence.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToHierarchicalItem(FuncHierarchicalItem, Boolean)Overloaded.
Returns elements from a sequence as long as a specified condition is false. This method also returns the first element that satisfies the condition.
(Defined by CollectionExtensions.)
Public Extension MethodTakeToHierarchicalItem(HierarchicalItem)Overloaded.
Returns elements from a sequence as long as the sequence elements differs from the item.
(Defined by CollectionExtensions.)
Top
Properties
  NameDescription
Public propertyCount
Public propertyItem
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when the collection changes.
Public eventItemPropertyChanged
Public eventPropertyChanged (Inherited from PropertyChangedBase.)
Top
See Also