ClassGroupService
Represents a group service.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public class GroupService : IGroupService
Inheritance: objectGroupService
Implements:
Constructors
GroupService()
Initializes a new instance of the GroupService class.
Declaration
public GroupService()
Properties
Groups
Gets the groups.
Declaration
public IEnumerable<IGroup> Groups { get; }
Property Value
Implements
RootGroups
Gets the root groups.
Declaration
public IEnumerable<IGroup> RootGroups { get; }
Property Value
Implements
SelectedGroups
Gets the selected groups.
Declaration
public IEnumerable<IGroup> SelectedGroups { get; }
Property Value
Implements
Methods
ChangeGroup(IGroupable, IGroup, IGroup, bool)
Changes the group of an item.
Declaration
public 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.
Implements
DiagramItemsChanged(NotifyCollectionChangedEventArgs)
Clears the empty groups on DiagramItemsChanged.
Declaration
public void DiagramItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
Implements
GetItemSiblings(IDiagramItem, bool)
Gets the siblings of the item.
Declaration
public IEnumerable<IDiagramItem> GetItemSiblings(IDiagramItem item, bool addToSelection)
Parameters
item
The item.
addToSelection
The add to selection.
Returns
Implements
Group(IGroup, params IGroupable[])
Groups the specified items in the provided group.
Declaration
public IGroup Group(IGroup hostGroup, params IGroupable[] items)
Parameters
hostGroup
The group.
items
The items.
Returns
Implements
Group(string, params IGroupable[])
Groups the specified items.
Declaration
public IGroup Group(string name = null, params IGroupable[] items)
Parameters
name
The group name.
items
The items.
Returns
Implements
OnItemParentGroupChanged(object, PropertyEventArgs<IGroup>)
Called when item parent group changes.
Declaration
public void OnItemParentGroupChanged(object sender, PropertyEventArgs<IGroup> e)
Parameters
sender
The sender.
e
The instance containing the event data.
Implements
Ungroup(IGroup)
Ungroups the specified group.
Declaration
public void Ungroup(IGroup group)
Parameters
group
The group.
Implements
Ungroup(IGroup[])
Ungroups the specified groups.
Declaration
public void Ungroup(IGroup[] groups)
Parameters
groups
IGroup[]
The groups.
Implements
Events
GroupsChanged
Occurs when groups have changed.
Declaration
public event NotifyCollectionChangedEventHandler GroupsChanged
Event Value
Implements