New to Telerik UI for WinFormsStart a free 30-day trial

IGroupService

Interface

Defines the grouping service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface IGroupService

Derived Classes: GroupService

Properties

Groups

IEnumerable<IGroup>

Gets the groups.

C#
IEnumerable<IGroup> Groups { get; }

RootGroups

IEnumerable<IGroup>

Gets the root groups.

C#
IEnumerable<IGroup> RootGroups { get; }

Gets the selected groups.

C#
IEnumerable<IGroup> SelectedGroups { get; }

Methods

Changes the group of an item.

C#
void ChangeGroup(IGroupable item, IGroup oldGroup, IGroup newGroup, bool isInternalChanging)
Parameters:itemIGroupable

The item.

oldGroupIGroup

The old group.

newGroupIGroup

The new group.

isInternalChangingbool

The is internal changing.

Clears the empty groups on DiagramItemsChanged.

C#
void DiagramItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Gets the siblings of the item.

C#
IEnumerable<IDiagramItem> GetItemSiblings(IDiagramItem item, bool addToSelection)
Parameters:itemIDiagramItem

The item.

addToSelectionbool

The add to selection.

Returns:

IEnumerable<IDiagramItem>

Groups the specified items in the provided group.

C#
IGroup Group(IGroup hostGroup, params IGroupable[] items)
Parameters:hostGroupIGroup

The group hosting the new items.

itemsIGroupable[]

The items.

Returns:

IGroup

Groups the specified items.

C#
IGroup Group(string name = null, params IGroupable[] items)
Parameters:namestring

The group name.

itemsIGroupable[]

The items.

Returns:

IGroup

Called when item parent group changes.

C#
void OnItemParentGroupChanged(object sender, PropertyEventArgs<IGroup> e)
Parameters:senderobject

The sender.

ePropertyEventArgs<IGroup>

The instance containing the event data.

Ungroups the specified group.

C#
void Ungroup(IGroup group)
Parameters:groupIGroup

The group.

Ungroups the specified groups.

C#
void Ungroup(IGroup[] groups)
Parameters:groupsIGroup[]

The groups.

Events

Occurs when groups have changed.

C#
event NotifyCollectionChangedEventHandler GroupsChanged