[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OwnedSortedDictionary-2

Class OwnedSortedDictionary<TKey, TValue>

Namespace
GrapeCity.Documents.Common
Assembly
GcDocs.Imaging.dll

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

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

Type Parameters

TKey

The type of the keys in the dictionary.

TValue

The type of the values in the dictionary.

Inheritance
object
OwnedSortedDictionary<TKey, TValue>
Implements
System.Collections.Generic.IDictionary<TKey, TValue><TKey, TValue>
System.Collections.Generic.ICollection<T><KeyValuePair<TKey, TValue>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T><KeyValuePair<TKey, TValue>>
System.Collections.Generic.IEnumerable<T><KeyValuePair<TKey, TValue>>
System.Collections.IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

OwnedSortedDictionary()

public OwnedSortedDictionary()

Properties

Owner

Gets a collection owner.

public object Owner { get; }

Property Value

object

Methods

AddItem(TKey, TValue)

Adds an element into collection with specified key.

protected override void AddItem(TKey key, TValue value)

Parameters

key TKey
value TValue

ClearItems()

Removes all elements from the collection.

protected override void ClearItems()

RemoveItem(TKey)

Removes an element with specified key.

protected override bool RemoveItem(TKey key)

Parameters

key TKey

Returns

bool

SetItem(TKey, TValue)

Replaces the element with the specified key.

protected override void SetItem(TKey key, TValue value)

Parameters

key TKey
value TValue

SetOwner(object)

Sets the owner of the current object.

protected virtual void SetOwner(object value)

Parameters

value object

The owner to set.