Interface
IGroupService

Defines the grouping service.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IGroupService

Properties

Groups

Gets the groups.

Declaration

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

Property Value

IEnumerable<IGroup>

RootGroups

Gets the root groups.

Declaration

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

Property Value

IEnumerable<IGroup>

SelectedGroups

Gets the selected groups.

Declaration

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

Property Value

IEnumerable<IGroup>

Methods

ChangeGroup(IGroupable, IGroup, IGroup, bool)

Changes the group of an item.

Declaration

cs-api-definition
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.

DiagramItemsChanged(NotifyCollectionChangedEventArgs)

Clears the empty groups on DiagramItemsChanged.

Declaration

cs-api-definition
void DiagramItemsChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

GetItemSiblings(IDiagramItem, bool)

Gets the siblings of the item.

Declaration

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

Parameters

item

IDiagramItem

The item.

addToSelection

bool

The add to selection.

Returns

IEnumerable<IDiagramItem>

Group(IGroup, params IGroupable[])

Groups the specified items in the provided group.

Declaration

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

Parameters

hostGroup

IGroup

The group hosting the new items.

items

IGroupable[]

The items.

Returns

IGroup

Group(string, params IGroupable[])

Groups the specified items.

Declaration

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

Parameters

name

string

The group name.

items

IGroupable[]

The items.

Returns

IGroup

OnItemParentGroupChanged(object, PropertyEventArgs<IGroup>)

Called when item parent group changes.

Declaration

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

Parameters

sender

object

The sender.

e

PropertyEventArgs<IGroup>

The instance containing the event data.

Ungroup(IGroup)

Ungroups the specified group.

Declaration

cs-api-definition
void Ungroup(IGroup group)

Parameters

group

IGroup

The group.

Ungroup(IGroup[])

Ungroups the specified groups.

Declaration

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

Parameters

groups

IGroup[]

The groups.

Events

GroupsChanged

Occurs when groups have changed.

Declaration

cs-api-definition
event NotifyCollectionChangedEventHandler GroupsChanged

Event Value

NotifyCollectionChangedEventHandler