Provides access to the groups that organize items in a RadTreeMapElement.
Reads synchronize this collection with groups generated by the tree map's data view. Adding a group also assigns its owner and applies the current data-view filter to its item source when possible.
Definition
Namespace:Telerik.WinControls.UI.TreeMap
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeMapDataItemGroupCollection : IList, ICollection, IEnumerable, INotifyCollectionChanged
Inheritance: objectTreeMapDataItemGroupCollection
Implements:
Constructors
Initializes a group collection for the specified tree map element.
public TreeMapDataItemGroupCollection(RadTreeMapElement owner)
The element whose groups this collection manages.
Fields
Stores the groups exposed by this collection.
protected ObservableCollection<TreeMapDataItemGroup> groups
The tree map element that owns the groups in this collection.
protected RadTreeMapElement owner
Properties
Gets the number of groups after synchronizing with the data view's generated groups.
public int Count { get; }
Implements:
Gets whether the underlying group collection permits changes.
public bool IsReadOnly { get; }
Implements:
Gets whether access to the underlying group collection is synchronized.
public bool IsSynchronized { get; }
Implements:
This value is provided by the underlying collection; this type adds no synchronization.
Gets the synchronization object supplied by the underlying group collection.
public object SyncRoot { get; }
Implements:
Gets or replaces a group after synchronizing with the data view's generated groups.
public TreeMapDataItemGroup this[int index] { get; set; }
The zero-based position of the group.
Methods
Adds a group and associates it with the owner of this collection.
Adds the specified groups while deferring lazy synchronization with groups generated by the data view.
public virtual void AddRange(params TreeMapDataItemGroup[] TreeMapDataItemGroups)
The groups to add.
A CollectionChanged notification is still raised for each collection mutation.
Defers synchronization with groups generated by the data view until the update scope ends.
public virtual void BeginUpdate()
This is a nesting counter for lazy group synchronization; collection change notifications are still raised while an update is in progress.
Removes all groups from this collection.
public void Clear()
Implements:
Determines whether the synchronized group collection contains the specified group.
public bool Contains(TreeMapDataItemGroup item)
The group to locate.
Returns:Copies the synchronized groups to an array, beginning at the specified array index.
public void CopyTo(TreeMapDataItemGroup[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index at which copying begins.
Ends one update scope started by BeginUpdate().
public virtual void EndUpdate()
Applies the tree map's current data-view filter to the group's item source when that source supports filtering.
protected virtual void EnsureFilterPredicate(TreeMapDataItemGroup item)
The group whose item source receives the filter.
Returns an enumerator over the groups after synchronizing with the data view.
public IEnumerator<TreeMapDataItemGroup> GetEnumerator()
IEnumerator<TreeMapDataItemGroup>
An enumerator for the groups in this collection.
Returns the position of a group after synchronizing with the data view's generated groups.
public int IndexOf(TreeMapDataItemGroup item)
The group to locate.
Returns:The group's zero-based position, or -1 if it is not present.
Inserts a group and associates it with the owner of this collection.
public void Insert(int index, TreeMapDataItemGroup item)
The zero-based position at which to insert the group.
itemTreeMapDataItemGroupThe group to insert.
Removes the specified group.
public bool Remove(TreeMapDataItemGroup item)
The group to remove.
Returns:Removes the group at the specified position.
public void RemoveAt(int index)
The zero-based position of the group to remove.
Implements:
Events
Occurs when a group is added, removed, replaced, or the collection is reset.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements: