IGroupService
Defines the grouping service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public interface IGroupService
Derived Classes:
Properties
RootGroups
IEnumerable<IGroup>
Gets the root groups.
IEnumerable<IGroup> RootGroups { get; }
SelectedGroups
IEnumerable<IGroup>
Gets the selected groups.
IEnumerable<IGroup> SelectedGroups { get; }
Methods
Changes the group of an item.
void ChangeGroup(IGroupable item, IGroup oldGroup, IGroup newGroup, bool isInternalChanging)
The item.
oldGroupIGroupThe old group.
newGroupIGroupThe new group.
isInternalChangingboolThe is internal changing.
Clears the empty groups on DiagramItemsChanged.
void DiagramItemsChanged(NotifyCollectionChangedEventArgs e)
The NotifyCollectionChangedEventArgs instance containing the event data.
Gets the siblings of the item.
IEnumerable<IDiagramItem> GetItemSiblings(IDiagramItem item, bool addToSelection)
The item.
addToSelectionboolThe add to selection.
Returns:IEnumerable<IDiagramItem>
Groups the specified items in the provided group.
IGroup Group(IGroup hostGroup, params IGroupable[] items)
The group hosting the new items.
itemsIGroupable[]The items.
Returns:Groups the specified items.
IGroup Group(string name = null, params IGroupable[] items)
The group name.
itemsIGroupable[]The items.
Returns:Called when item parent group changes.
void OnItemParentGroupChanged(object sender, PropertyEventArgs<IGroup> e)
The sender.
ePropertyEventArgs<IGroup>The instance containing the event data.
Ungroups the specified group.
Ungroups the specified groups.
Events
Occurs when groups have changed.
event NotifyCollectionChangedEventHandler GroupsChanged