Class
GroupService

Represents a group service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class GroupService : IGroupService

Inheritance: objectGroupService

Implements: IGroupService

Constructors

GroupService()

Initializes a new instance of the GroupService class.

Declaration

cs-api-definition
public GroupService()

Properties

Groups

Gets the groups.

Declaration

cs-api-definition
public IEnumerable<IGroup> Groups { get; }

Property Value

IEnumerable<IGroup>

Implements IGroupService.Groups

RootGroups

Gets the root groups.

Declaration

cs-api-definition
public IEnumerable<IGroup> RootGroups { get; }

Property Value

IEnumerable<IGroup>

Implements IGroupService.RootGroups

SelectedGroups

Gets the selected groups.

Declaration

cs-api-definition
public IEnumerable<IGroup> SelectedGroups { get; }

Property Value

IEnumerable<IGroup>

Implements IGroupService.SelectedGroups

Methods

ChangeGroup(IGroupable, IGroup, IGroup, bool)

Changes the group of an item.

Declaration

cs-api-definition
public void ChangeGroup(IGroupable item, IGroup oldGroup, IGroup newGroup, bool isInternalChanging)

Parameters

item

IGroupable

The item.

oldGroup

IGroup

The old group.

newGroup

IGroup

The new group.

isInternalChanging

bool

The is internal changing.

Implements IGroupService.ChangeGroup(IGroupable, IGroup, IGroup, bool)

DiagramItemsChanged(NotifyCollectionChangedEventArgs)

Clears the empty groups on DiagramItemsChanged.

Declaration

cs-api-definition
public void DiagramItemsChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Implements IGroupService.DiagramItemsChanged(NotifyCollectionChangedEventArgs)

GetItemSiblings(IDiagramItem, bool)

Gets the siblings of the item.

Declaration

cs-api-definition
public IEnumerable<IDiagramItem> GetItemSiblings(IDiagramItem item, bool addToSelection)

Parameters

item

IDiagramItem

The item.

addToSelection

bool

The add to selection.

Returns

IEnumerable<IDiagramItem>

Implements IGroupService.GetItemSiblings(IDiagramItem, bool)

Group(IGroup, params IGroupable[])

Groups the specified items in the provided group.

Declaration

cs-api-definition
public IGroup Group(IGroup hostGroup, params IGroupable[] items)

Parameters

hostGroup

IGroup

The group.

items

IGroupable[]

The items.

Returns

IGroup

Implements IGroupService.Group(IGroup, params IGroupable[])

Group(string, params IGroupable[])

Groups the specified items.

Declaration

cs-api-definition
public IGroup Group(string name = null, params IGroupable[] items)

Parameters

name

string

The group name.

items

IGroupable[]

The items.

Returns

IGroup

Implements IGroupService.Group(string, params IGroupable[])

OnItemParentGroupChanged(object, PropertyEventArgs<IGroup>)

Called when item parent group changes.

Declaration

cs-api-definition
public void OnItemParentGroupChanged(object sender, PropertyEventArgs<IGroup> e)

Parameters

sender

object

The sender.

e

PropertyEventArgs<IGroup>

The instance containing the event data.

Implements IGroupService.OnItemParentGroupChanged(object, PropertyEventArgs<IGroup>)

Ungroup(IGroup)

Ungroups the specified group.

Declaration

cs-api-definition
public void Ungroup(IGroup group)

Parameters

group

IGroup

The group.

Implements IGroupService.Ungroup(IGroup)

Ungroup(IGroup[])

Ungroups the specified groups.

Declaration

cs-api-definition
public void Ungroup(IGroup[] groups)

Parameters

groups

IGroup[]

The groups.

Implements IGroupService.Ungroup(IGroup[])

Events

GroupsChanged

Occurs when groups have changed.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler GroupsChanged

Event Value

NotifyCollectionChangedEventHandler

Implements IGroupService.GroupsChanged