Search Results for

    Show / Hide Table of Contents
    View Source

    Class PropertyGroupCollection

    Represents a collection of PropertyGroup objects

    Inheritance
    object
    Collection<PropertyGroup>
    KeyedCollection<string, PropertyGroup>
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [Serializable]
    [DataContract]
    public class PropertyGroupCollection : KeyedCollection<string, PropertyGroup>, IDeepCloneable

    Constructors

    View Source

    PropertyGroupCollection()

    Initializes a new instance of the PropertyGroupCollection class.

    Declaration
    public PropertyGroupCollection()
    View Source

    PropertyGroupCollection(IEnumerable<PropertyGroup>)

    Initializes a new instance of the PropertyGroupCollection class.

    Declaration
    public PropertyGroupCollection(IEnumerable<PropertyGroup> groups)
    Parameters
    Type Name Description
    IEnumerable<PropertyGroup> groups

    The groups.

    Methods

    View Source

    Add(PropertyGroup)

    Declaration
    public void Add(PropertyGroup item)
    Parameters
    Type Name Description
    PropertyGroup item
    View Source

    ClearCollectionChangedEvents()

    Clears all CollectionChanged event handlers

    Declaration
    public void ClearCollectionChangedEvents()
    View Source

    ClearItems()

    Removes all elements from the System.Collections.ObjectModel.KeyedCollection<TKey, TItem>.

    Declaration
    protected override void ClearItems()
    View Source

    Contains(int)

    Declaration
    public bool Contains(int id)
    Parameters
    Type Name Description
    int id
    Returns
    Type Description
    bool
    View Source

    DeepClone()

    Declaration
    public object DeepClone()
    Returns
    Type Description
    object
    View Source

    GetKeyForItem(PropertyGroup)

    When implemented in a derived class, extracts the key from the specified element.

    Declaration
    protected override string GetKeyForItem(PropertyGroup item)
    Parameters
    Type Name Description
    PropertyGroup item

    The element from which to extract the key.

    Returns
    Type Description
    string

    The key for the specified element.

    View Source

    IndexOfKey(int)

    Declaration
    public int IndexOfKey(int id)
    Parameters
    Type Name Description
    int id
    Returns
    Type Description
    int
    View Source

    IndexOfKey(string)

    Declaration
    public int IndexOfKey(string key)
    Parameters
    Type Name Description
    string key
    Returns
    Type Description
    int
    View Source

    InsertItem(int, PropertyGroup)

    Inserts an element into the System.Collections.ObjectModel.KeyedCollection<TKey, TItem> at the specified index.

    Declaration
    protected override void InsertItem(int index, PropertyGroup item)
    Parameters
    Type Name Description
    int index

    The zero-based index at which item should be inserted.

    PropertyGroup item

    The object to insert.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException
       <code class="paramref">index</code> is less than 0.
    

    -or-

    index is greater than System.Collections.ObjectModel.Collection<T>.Count.

    View Source

    OnCollectionChanged(NotifyCollectionChangedEventArgs)

    Declaration
    protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
    Parameters
    Type Name Description
    NotifyCollectionChangedEventArgs args
    View Source

    RemoveItem(int)

    Removes the element at the specified index of the System.Collections.ObjectModel.KeyedCollection<TKey, TItem>.

    Declaration
    protected override void RemoveItem(int index)
    Parameters
    Type Name Description
    int index

    The index of the element to remove.

    View Source

    SetItem(int, PropertyGroup)

    Replaces the item at the specified index with the specified item.

    Declaration
    protected override void SetItem(int index, PropertyGroup item)
    Parameters
    Type Name Description
    int index

    The zero-based index of the item to be replaced.

    PropertyGroup item

    The new item.

    Events

    View Source

    CollectionChanged

    Occurs when the collection changes.

    Declaration
    public event NotifyCollectionChangedEventHandler? CollectionChanged
    Event Type
    Type Description
    NotifyCollectionChangedEventHandler
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX