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