Class
GroupExtensions

Extensions on the IGroup interface.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public static class GroupExtensions

Inheritance: objectGroupExtensions

Methods

AddToGroup(IGroup, params IGroupable[])

Adds to group.

Declaration

cs-api-definition
public static void AddToGroup(this IGroup group, params IGroupable[] items)

Parameters

group

IGroup

The group.

items

IGroupable[]

The items.

Contains(IGroup, IDiagramItem)

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

Declaration

cs-api-definition
public static bool Contains(this IGroup group, IDiagramItem item)

Parameters

group

IGroup

The group.

item

IDiagramItem

The item to test for.

Returns

bool

GetBounds(IGroup)

Gets the bounds of a specific group.

Declaration

cs-api-definition
public static Rect GetBounds(this IGroup group)

Parameters

group

IGroup

Returns

Rect

GetGroups(IGroup)

Gets the items.

Declaration

cs-api-definition
public static IEnumerable<IGroup> GetGroups(this IGroup group)

Parameters

group

IGroup

The group.

Returns

IEnumerable<IGroup>

GetItems(IGroup)

Gets the items.

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> GetItems(this IGroup group)

Parameters

group

IGroup

The group.

Returns

IEnumerable<IDiagramItem>

GetItemsRecursively(IGroup)

Gets all the items insider the specific group.

Declaration

cs-api-definition
public static IEnumerable<IDiagramItem> GetItemsRecursively(this IGroup group)

Parameters

group

IGroup

Returns

IEnumerable<IDiagramItem>

GetSingleItems(IGroup)

Gets all the items inside the specific group.

Declaration

cs-api-definition
public static IEnumerable<IGroupable> GetSingleItems(this IGroup group)

Parameters

group

IGroup

The group.

Returns

IEnumerable<IGroupable>

GetSupremumGroup(IGroupable, IDiagramItem)

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

Declaration

cs-api-definition
public static IGroup GetSupremumGroup(this IGroupable item1, IDiagramItem item2)

Parameters

item1

IGroupable

A diagram item.

item2

IDiagramItem

Another diagram item.

Returns

IGroup

RemoveFromGroup(IGroup, params IGroupable[])

Removes from group.

Declaration

cs-api-definition
public static void RemoveFromGroup(this IGroup group, params IGroupable[] items)

Parameters

group

IGroup

The group.

items

IGroupable[]

The items.

SelectRecursivly(IGroup, bool)

Selects the group and all it's children.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Recursivly")]
public static void SelectRecursivly(this IGroup group, bool isSelected)

Parameters

group

IGroup

The group.

isSelected

bool

If set to true [is selected].