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