Class
Group

Represents a group.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public class Group : IGroup, IGroupable, INotifyPropertyChanged

Inheritance: objectGroup

Implements: IGroupIGroupableINotifyPropertyChanged

Constructors

Group(string)

Initializes a new instance of the Group class.

Declaration

cs-api-definition
public Group(string name)

Parameters

name

string

The name of the new group.

Properties

IsSelected

Gets or sets a value indicating whether this instance is selected.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

True if this instance is selected; otherwise, false.

Implements IGroup.IsSelected

Items

Gets the items.

Declaration

cs-api-definition
public IList<IGroupable> Items { get; }

Property Value

IList<IGroupable>

Implements IGroup.Items

Name

Gets the name.

Declaration

cs-api-definition
public string Name { get; }

Property Value

string

Implements IGroup.Name

ParentGroup

Gets or sets the parent.

Declaration

cs-api-definition
public IGroup ParentGroup { get; set; }

Property Value

IGroup

The parent.

Implements IGroupable.ParentGroup

Methods

OnPropertyChanged(string)

Called when a property has changed.

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

Name of the property.

Events

ItemsChanged

Occurs when the collection of items this group contains has changed.

Declaration

cs-api-definition
public event NotifyCollectionChangedEventHandler ItemsChanged

Event Value

NotifyCollectionChangedEventHandler

Implements IGroup.ItemsChanged

ParentGroupChanged

Occurs when the group to which this item belongs has changed.

Declaration

cs-api-definition
public event EventHandler<PropertyEventArgs<IGroup>> ParentGroupChanged

Event Value

EventHandler<PropertyEventArgs<IGroup>>

Implements IGroupable.ParentGroupChanged

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

SelectionChanged

Occurs when the selected item within this group has changed.

Declaration

cs-api-definition
public event EventHandler SelectionChanged

Event Value

EventHandler

Implements IGroup.SelectionChanged