View Source
Class PropertyGroupCollection
Inheritance
System.Object
System.Collections.ObjectModel.KeyedCollection<
System.String,
PropertyGroup>
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
View Source
PropertyGroupCollection(IEnumerable<PropertyGroup>)
Declaration
public PropertyGroupCollection(IEnumerable<PropertyGroup> groups)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<PropertyGroup> |
groups |
The groups.
|
Properties
View Source
Item[String]
Declaration
public PropertyGroup this[string key] { get; }
Parameters
Type |
Name |
Description |
System.String |
key |
|
Property Value
Methods
View Source
ClearCollectionChangedEvents()
Declaration
public void ClearCollectionChangedEvents()
View Source
ClearItems()
Declaration
protected override void ClearItems()
View Source
Contains(Int32)
Declaration
public bool Contains(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Contains(String)
Declaration
public bool Contains(string groupName)
Parameters
Type |
Name |
Description |
System.String |
groupName |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
DeepClone()
Declaration
public object DeepClone()
Returns
Type |
Description |
System.Object |
|
View Source
GetKeyForItem(PropertyGroup)
Declaration
protected override string GetKeyForItem(PropertyGroup item)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
IndexOfKey(Int32)
Declaration
public int IndexOfKey(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
IndexOfKey(String)
Declaration
public int IndexOfKey(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Int32 |
|
View Source
InsertItem(Int32, PropertyGroup)
Declaration
protected override void InsertItem(int index, PropertyGroup item)
Parameters
View Source
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Declaration
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventArgs |
args |
|
View Source
Remove(String)
Declaration
public bool Remove(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
RemoveItem(Int32)
Declaration
protected override void RemoveItem(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
View Source
RemoveItem(String)
Declaration
[Obsolete("Use Remove(key) instead.")]
public void RemoveItem(string propertyGroupName)
Parameters
Type |
Name |
Description |
System.String |
propertyGroupName |
|
View Source
SetItem(Int32, PropertyGroup)
Declaration
protected override void SetItem(int index, PropertyGroup item)
Parameters
Events
View Source
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Type |
Description |
System.Collections.Specialized.NotifyCollectionChangedEventHandler |
|