Dela via


ModelItemDictionary Members

Include Protected Members
Include Inherited Members

Implements key/value dictionary support for ModelItem objects.

The ModelItemDictionary type exposes the following members.

Constructors

 

Name

Description

Protected method

ModelItemDictionary

Initializes a new instance of the ModelItemDictionary class.

Top

Methods

 

Name

Description

Public method

Add

Overloaded. When overridden in a derived class, adds the item to the dictionary under the specified key.

Public method

BeginEdit

Overloaded. When overridden in a derived class, this method is called when performing multiple operations on an object or group of objects.

Public method

Clear

When overridden in a derived class, clears the contents of the dictionary.

Protected method

Contains

When overridden in a derived class, returns whether the dictionary contains the specified key value pair.

Public method

ContainsKey

Overloaded. When overridden in a derived class, returns a value indicating whether the dictionary contains the specified key.

Protected method

CopyTo

When overridden in a derived class, copies the contents of the dictionary into the specified array beginning at the specified index.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetCurrentValue

When overridden in a derived class, returns the current value of the underlying model object the ModelItem is wrapping. (Inherited from ModelItem.)

Public method

GetEnumerator

When overridden in a derived class, returns an enumerator for the items in the dictionary.

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

Remove

Overloaded. When overridden in a derived class, removes the item from the dictionary.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Public method

TryGetValue

Overloaded. When overridden in a derived class, retrieves the value for the specified key.

Top

Fields

 

Name

Description

Public fieldStatic member

KeyProperty

ModelItemDictionary provides an attached property "Key", which is adds to all items contained in the dictionary. The data type of the Key property is "ModelItem".

Top

Properties

 

Name

Description

Public property

Attributes

When overridden in a derived class, gets the attributes declared on this item. (Inherited from ModelItem.)

Public property

Content

When overridden in a derived class, gets a ModelProperty representing the item's ContentPropertyAttribute. (Inherited from ModelItem.)

Public property

Count

When overridden in a derived class, gets the count of items in the dictionary.

Public property

Events

When overridden in a derived class, gets the public events on this object. (Inherited from ModelItem.)

Protected property

IsFixedSize

When overridden in a derived class, gets a value indicating whether the dictionary is a fixed size.

Public property

IsReadOnly

When overridden in a derived class, gets a value indicating whether the dictionary can be modified.

Protected property

IsSynchronized

When overridden in a derived class, gets a value indicating whether the dictionary is synchronized.

Public property

Item

Overloaded.

Public property

ItemType

When overridden in a derived class, gets the type of object the item represents. (Inherited from ModelItem.)

Public property

Keys

When overridden in a derived class, gets the keys of the dictionary.

Public property

Name

When overridden in a derived class, gets or sets the name or ID of the item. (Inherited from ModelItem.)

Public property

Parent

When overridden in a derived class, gets the item that is the parent of this item. (Inherited from ModelItem.)

Public property

Properties

When overridden in a derived class, gets the public properties on this object. (Inherited from ModelItem.)

Public property

Root

When overridden in a derived class, gets the item that is the root of this tree. (Inherited from ModelItem.)

Public property

Source

When overridden in a derived class, gets the property that provided this value. (Inherited from ModelItem.)

Protected property

SyncRoot

When overridden in a derived class, gets the object used to synchronize this dictionary.

Public property

Values

When overridden in a derived class, gets the values of the dictionary.

Public property

View

When overridden in a derived class, gets the visual or visual3D representing the UI for this item. (Inherited from ModelItem.)

Top

Events

 

Name

Description

Public event

CollectionChanged

When overridden in a derived class, occurs when the contents of this dictionary is changed.

Public event

PropertyChanged

When overridden in a derived class, occurs when a property on the model changes. (Inherited from ModelItem.)

Top

Explicit Interface Implementations

 

Name

Description

Explicit interface implemetationPrivate method

ICollection<KeyValuePair<ModelItem, ModelItem>>.Add

For a description of this member, see ICollection<T>.Add.

Explicit interface implemetationPrivate method

IDictionary.Add

For a description of this member, see IDictionary.Add.

Explicit interface implemetationPrivate method

IDictionary.Clear

For a description of this member, see IDictionary.Clear.

Explicit interface implemetationPrivate method

ICollection<KeyValuePair<ModelItem, ModelItem>>.Contains

For a description of this member, see ICollection<T>.Contains.

Explicit interface implemetationPrivate method

IDictionary.Contains

For a description of this member, see IDictionary.Contains.

Explicit interface implemetationPrivate method

ICollection<KeyValuePair<ModelItem, ModelItem>>.CopyTo

For a description of this member, see ICollection<T>.CopyTo.

Explicit interface implemetationPrivate method

ICollection.CopyTo

For a description of this member, see ICollection.CopyTo.

Explicit interface implemetationPrivate property

ICollection.Count

For a description of this member, see ICollection.Count.

Explicit interface implemetationPrivate method

IDictionary.GetEnumerator

For a description of this member, see IDictionary.GetEnumerator.

Explicit interface implemetationPrivate method

IEnumerable.GetEnumerator

For a description of this member, see IEnumerable.GetEnumerator.

Explicit interface implemetationPrivate property

IDictionary.IsFixedSize

For a description of this member, see IDictionary.IsFixedSize.

Explicit interface implemetationPrivate property

IDictionary.IsReadOnly

For a description of this member, see IDictionary.IsReadOnly.

Explicit interface implemetationPrivate property

ICollection.IsSynchronized

For a description of this member, see ICollection.IsSynchronized.

Explicit interface implemetationPrivate property

IDictionary.Item

For a description of this member, see IDictionary.Item.

Explicit interface implemetationPrivate property

IDictionary.Keys

For a description of this member, see IDictionary.Keys.

Explicit interface implemetationPrivate method

ICollection<KeyValuePair<ModelItem, ModelItem>>.Remove

For a description of this member, see ICollection<T>.Remove.

Explicit interface implemetationPrivate method

IDictionary.Remove

For a description of this member, see IDictionary.Remove.

Explicit interface implemetationPrivate property

ICollection.SyncRoot

For a description of this member, see ICollection.SyncRoot.

Explicit interface implemetationPrivate property

IDictionary.Values

For a description of this member, see IDictionary.Values.

Top

See Also

Reference

ModelItemDictionary Class

Microsoft.Windows.Design.Model Namespace