ModelItemDictionary ModelItemDictionary ModelItemDictionary ModelItemDictionary Class

Definition

Derives from ModelItem and implements support for a dictionary of key/value pairs.

public ref class ModelItemDictionary abstract : System::Activities::Presentation::Model::ModelItem, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^>>, System::Collections::Generic::IDictionary<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::Activities::Presentation::Model::ModelItem ^, System::Activities::Presentation::Model::ModelItem ^>>, System::Collections::IDictionary, System::Collections::Specialized::INotifyCollectionChanged
public abstract class ModelItemDictionary : System.Activities.Presentation.Model.ModelItem, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>>, System.Collections.Generic.IDictionary<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Activities.Presentation.Model.ModelItem,System.Activities.Presentation.Model.ModelItem>>, System.Collections.IDictionary, System.Collections.Specialized.INotifyCollectionChanged
type ModelItemDictionary = class
    inherit ModelItem
    interface IDictionary<ModelItem, ModelItem>
    interface ICollection<KeyValuePair<ModelItem, ModelItem>>
    interface seq<KeyValuePair<ModelItem, ModelItem>>
    interface IEnumerable
    interface IDictionary
    interface ICollection
    interface INotifyCollectionChanged
Public MustInherit Class ModelItemDictionary
Inherits ModelItem
Implements ICollection(Of KeyValuePair(Of ModelItem, ModelItem)), IDictionary, IDictionary(Of ModelItem, ModelItem), IEnumerable(Of KeyValuePair(Of ModelItem, ModelItem)), INotifyCollectionChanged
Inheritance
ModelItemDictionaryModelItemDictionaryModelItemDictionaryModelItemDictionary
Implements

Constructors

ModelItemDictionary() ModelItemDictionary() ModelItemDictionary() ModelItemDictionary()

Creates a new ModelItemDictionary.

Fields

KeyProperty KeyProperty KeyProperty KeyProperty

The DependencyProperty that represents the key in the key/value pair that is added to all items in the dictionary. The data type of the KeyProperty is ModelItem.

Properties

Attributes Attributes Attributes Attributes

Gets the attributes declared on this item.

(Inherited from ModelItem)
Content Content Content Content

Gets the ContentPropertyAttribute of the item, or null.

(Inherited from ModelItem)
Count Count Count Count

Returns the count of items in the dictionary.

IsFixedSize IsFixedSize IsFixedSize IsFixedSize

Determines whether the dictionary is a fixed size.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Determines whether the dictionary cannot be modified.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

Gets a value that indicates whether access to the dictionary is synchronized (thread safe).

ItemType ItemType ItemType ItemType

Gets the type of object that the item represents.

(Inherited from ModelItem)
Item[ModelItem] Item[ModelItem] Item[ModelItem] Item[ModelItem]

Gets or sets the item at the specified key.

Item[Object] Item[Object] Item[Object] Item[Object]

Gets or sets the item at the specified key.

Keys Keys Keys Keys

Gets the keys of the collection. The keys are guaranteed to be in the same order as the values. The resulting collection is read-only.

Name Name Name Name

Gets or sets the name or ID of the item.

(Inherited from ModelItem)
Parent Parent Parent Parent

Gets the item that is the parent of this item.

(Inherited from ModelItem)
Parents Parents Parents Parents

Gets all parents of this item.

(Inherited from ModelItem)
Properties Properties Properties Properties

Gets the public properties on this item.

(Inherited from ModelItem)
Root Root Root Root

Gets the item that is the root of this tree.

(Inherited from ModelItem)
Source Source Source Source

Gets the property that provided this value.

(Inherited from ModelItem)
Sources Sources Sources Sources

Gets all the properties that hold this value.

(Inherited from ModelItem)
SyncRoot SyncRoot SyncRoot SyncRoot

Gets an object that can be used to synchronize access to this collection.

Values Values Values Values

Gets the values of the collection.

View View View View

Gets a DependencyObject that graphically represents this item.

(Inherited from ModelItem)

Methods

Add(ModelItem, ModelItem) Add(ModelItem, ModelItem) Add(ModelItem, ModelItem) Add(ModelItem, ModelItem)

Adds the value to the dictionary under the given key.

Add(Object, Object) Add(Object, Object) Add(Object, Object) Add(Object, Object)

Adds the value to the dictionary under the given key. This method wraps the key and value in a set of ModelItem objects.

BeginEdit() BeginEdit() BeginEdit() BeginEdit()

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

(Inherited from ModelItem)
BeginEdit(Boolean) BeginEdit(Boolean) BeginEdit(Boolean) BeginEdit(Boolean)

Opens an editing scope for the designer.

(Inherited from ModelItem)
BeginEdit(String) BeginEdit(String) BeginEdit(String) BeginEdit(String)

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

(Inherited from ModelItem)
BeginEdit(String, Boolean) BeginEdit(String, Boolean) BeginEdit(String, Boolean) BeginEdit(String, Boolean)

Opens an editing scope for the designer.

(Inherited from ModelItem)
Clear() Clear() Clear() Clear()

Clears the contents of the dictionary.

Contains(KeyValuePair<ModelItem,ModelItem>) Contains(KeyValuePair<ModelItem,ModelItem>) Contains(KeyValuePair<ModelItem,ModelItem>) Contains(KeyValuePair<ModelItem,ModelItem>)

Determines whether the dictionary contains the given key/value pair.

ContainsKey(ModelItem) ContainsKey(ModelItem) ContainsKey(ModelItem) ContainsKey(ModelItem)

Determines whether the dictionary contains the given key.

ContainsKey(Object) ContainsKey(Object) ContainsKey(Object) ContainsKey(Object)

Determines whether the dictionary contains the given key.

CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32)

Copies an array of key/value pairs into the given dictionary.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetCurrentValue() GetCurrentValue() GetCurrentValue() GetCurrentValue()

Returns the current value of the underlying model object that the ModelItem is wrapping.

(Inherited from ModelItem)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator for the items in the dictionary.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(ModelItem) Remove(ModelItem) Remove(ModelItem) Remove(ModelItem)

Removes the item with the specified key from the dictionary.

Remove(Object) Remove(Object) Remove(Object) Remove(Object)

Removes the item from the dictionary.

ToString() ToString() ToString() ToString()

Returns a string representation of the underlying model object contained in this model item.

(Inherited from ModelItem)
TryGetValue(ModelItem, ModelItem) TryGetValue(ModelItem, ModelItem) TryGetValue(ModelItem, ModelItem) TryGetValue(ModelItem, ModelItem)

Retrieves the value for the given key, if possible.

TryGetValue(Object, ModelItem) TryGetValue(Object, ModelItem) TryGetValue(Object, ModelItem) TryGetValue(Object, ModelItem)

Retrieves the value for the given key, if possible.

Events

CollectionChanged CollectionChanged CollectionChanged CollectionChanged

Raised when the contents of this collection change.

PropertyChanged PropertyChanged PropertyChanged PropertyChanged

Implements INotifyPropertyChanged. Use this event to listen for changes to the model. This is also used by the data binding features of WPF.

(Inherited from ModelItem)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the elements of the ICollection to an array, starting at a particular array index.

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

Gets the number of elements contained in the ICollection.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

Gets a value that indicates whether access to the ICollection is synchronized (thread safe).

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

ICollection<KeyValuePair<ModelItem,ModelItem>>.Add(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Add(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Add(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Add(KeyValuePair<ModelItem,ModelItem>)

Adds a new element to the end of the collection.

ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Contains(KeyValuePair<ModelItem,ModelItem>)

Determines whether the dictionary contains the given key/value pair.

ICollection<KeyValuePair<ModelItem,ModelItem>>.CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) ICollection<KeyValuePair<ModelItem,ModelItem>>.CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) ICollection<KeyValuePair<ModelItem,ModelItem>>.CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) ICollection<KeyValuePair<ModelItem,ModelItem>>.CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32)

Copies an array of key/value pairs into the given dictionary.

ICollection<KeyValuePair<ModelItem,ModelItem>>.Remove(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Remove(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Remove(KeyValuePair<ModelItem,ModelItem>) ICollection<KeyValuePair<ModelItem,ModelItem>>.Remove(KeyValuePair<ModelItem,ModelItem>)

Removes the specified key/value pair from the dictionary.

IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object)

Adds an element with the provided key and value to the IDictionary object.

IDictionary.Clear() IDictionary.Clear() IDictionary.Clear() IDictionary.Clear()

Removes all elements from the IDictionary object.

IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object)

Determines whether the IDictionary object contains an element with the specified key.

IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator()

Returns the IDictionaryEnumerator object for the IDictionary object.

IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize

Gets a value that indicates whether the IDictionary object has a fixed size.

IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly IDictionary.IsReadOnly

Gets a value that indicates whether the IDictionary object is read-only.

IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object]

Gets or sets the element with the specified key.

IDictionary.Keys IDictionary.Keys IDictionary.Keys IDictionary.Keys

Gets an ICollection object that contains the keys of the IDictionary object.

IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object)

Removes the element with the specified key from the IDictionary.

IDictionary.Values IDictionary.Values IDictionary.Values IDictionary.Values

Gets an ICollection object that contains the values in the IDictionary object.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Extension Methods

Focus(ModelItem) Focus(ModelItem) Focus(ModelItem) Focus(ModelItem)

Sets the keyboard focus on the specified designer item.

Focus(ModelItem, Int32) Focus(ModelItem, Int32) Focus(ModelItem, Int32) Focus(ModelItem, Int32)

Sets the keyboard focus on the specified designer item.

GetEditingContext(ModelItem) GetEditingContext(ModelItem) GetEditingContext(ModelItem) GetEditingContext(ModelItem)

Retrieves the editing context of the specified model item.

GetModelPath(ModelItem) GetModelPath(ModelItem) GetModelPath(ModelItem) GetModelPath(ModelItem)

Retrieves the path of the specified model item.

IsParentOf(ModelItem, ModelItem) IsParentOf(ModelItem, ModelItem) IsParentOf(ModelItem, ModelItem) IsParentOf(ModelItem, ModelItem)

Returns a value that indicates whether the first specified designer item is a parent of the second specified designer item.

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to