Class PropertyGroupCollection
Inheritance
System.Object
System.Collections.ObjectModel.KeyedCollection<
System.String,
PropertyGroup>
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
[Serializable]
[DataContract]
public class PropertyGroupCollection : KeyedCollection<string, PropertyGroup>, IList<PropertyGroup>, ICollection<PropertyGroup>, IList, ICollection, IReadOnlyList<PropertyGroup>, IReadOnlyCollection<PropertyGroup>, IEnumerable<PropertyGroup>, IEnumerable, INotifyCollectionChanged, IDeepCloneable
Constructors
PropertyGroupCollection(IEnumerable<PropertyGroup>)
Declaration
public PropertyGroupCollection(IEnumerable<PropertyGroup> groups)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<PropertyGroup> |
groups |
|
Methods
ClearItems()
Declaration
protected override void ClearItems()
Contains(Int32)
Declaration
public bool Contains(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
Contains(String)
Determines whether this collection contains a PropertyGroup whose name matches the specified parameter.
Declaration
public bool Contains(string groupName)
Parameters
Type |
Name |
Description |
System.String |
groupName |
Name of the PropertyGroup.
|
Returns
Type |
Description |
System.Boolean |
true if the collection contains the specified name; otherwise, false .
|
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
GetKeyForItem(PropertyGroup)
Declaration
protected override string GetKeyForItem(PropertyGroup item)
Parameters
Returns
Type |
Description |
System.String |
|
IndexOfKey(Int32)
Declaration
public int IndexOfKey(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Int32 |
|
IndexOfKey(String)
Declaration
public int IndexOfKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Int32 |
|
InsertItem(Int32, PropertyGroup)
Declaration
protected override void InsertItem(int index, PropertyGroup item)
Parameters
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventArgs |
args |
|
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
RemoveItem(String)
Declaration
public void RemoveItem(string propertyGroupName)
Parameters
Type |
Name |
Description |
System.String |
propertyGroupName |
|
SetItem(Int32, PropertyGroup)
Declaration
protected override void SetItem(int index, PropertyGroup item)
Parameters
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|