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

Extensions on the IGroup interface.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

C#
public static class GroupExtensions

Inheritance: objectGroupExtensions

Methods

Adds to group.

C#
public static void AddToGroup(this IGroup group, params IGroupable[] items)
Parameters:groupIGroup

The group.

itemsIGroupable[]

The items.

Returns whether the group contains in its hierarchy the given item.

C#
public static bool Contains(this IGroup group, IDiagramItem item)
Parameters:groupIGroup

The group.

itemIDiagramItem

The item to test for.

Returns:

bool

Gets the bounds of a specific group.

C#
public static Rect GetBounds(this IGroup group)
Parameters:groupIGroupReturns:

Rect

Gets the items.

C#
public static IEnumerable<IGroup> GetGroups(this IGroup group)
Parameters:groupIGroup

The group.

Returns:

IEnumerable<IGroup>

Gets the items.

C#
public static IEnumerable<IDiagramItem> GetItems(this IGroup group)
Parameters:groupIGroup

The group.

Returns:

IEnumerable<IDiagramItem>

Gets all the items insider the specific group.

C#
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IGroup group)
Parameters:groupIGroupReturns:

IEnumerable<IDiagramItem>

Gets all the items inside the specific group.

C#
public static IEnumerable<IGroupable> GetSingleItems(this IGroup group)
Parameters:groupIGroup

The group.

Returns:

IEnumerable<IGroupable>

Gets the first (lowest in the hierarchy) group which groups both given shapes.

C#
public static IGroup GetSupremumGroup(this IGroupable item1, IDiagramItem item2)
Parameters:item1IGroupable

A diagram item.

item2IDiagramItem

Another diagram item.

Returns:

IGroup

Removes from group.

C#
public static void RemoveFromGroup(this IGroup group, params IGroupable[] items)
Parameters:groupIGroup

The group.

itemsIGroupable[]

The items.

Selects the group and all it's children.

C#
public static void SelectRecursivly(this IGroup group, bool isSelected)
Parameters:groupIGroup

The group.

isSelectedbool

If set to true [is selected].