[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OwnedSortedDictionary-2

OwnedSortedDictionary<TKey, TValue> Class

Represents a collection of key/value pairs that are sorted on the key. Values should support IOwnedObject interface, collection updates their Owner property.

Inheritance
OwnedSortedDictionary<TKey, TValue>
Namespace: GrapeCity.Documents.Common
Assembly: DS.Documents.Imaging.dll
Syntax
public class OwnedSortedDictionary<TKey, TValue> : ObservableSortedDictionary<TKey, TValue>, IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IDictionary, ICollection, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IOwnedObject where TValue : IOwnedObject
Public Class OwnedSortedDictionary(Of TKey, TValue As IOwnedObject)
    Inherits ObservableSortedDictionary(Of TKey, TValue)
    Implements IDictionary(Of TKey, TValue), ICollection(Of KeyValuePair(Of TKey, TValue)), IDictionary, ICollection, IReadOnlyDictionary(Of TKey, TValue), IReadOnlyCollection(Of KeyValuePair(Of TKey, TValue)), IEnumerable(Of KeyValuePair(Of TKey, TValue)), IEnumerable, IOwnedObject
Type Parameters
Name Description
TKey

The type of the keys in the dictionary.

TValue

The type of the values in the dictionary.

Constructors

Name Description
OwnedSortedDictionary()

Properties

Name Description
Owner

Gets a collection owner.

Methods

Name Description
AddItem(TKey, TValue)

Adds an element into collection with specified key.

ClearItems()

Removes all elements from the collection.

RemoveItem(TKey)

Removes an element with specified key.

SetItem(TKey, TValue)

Replaces the element with the specified key.

SetOwner(object)

Sets the owner of the current object.