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
- Implements
Constructors
ModelItemDictionary() |
Creates a new ModelItemDictionary. |
Fields
KeyProperty |
The |
Properties
Attributes |
Gets the attributes declared on this item. (Inherited from ModelItem) |
Content |
Gets the |
Count |
Returns the count of items in the dictionary. |
IsFixedSize |
Determines whether the dictionary is a fixed size. |
IsReadOnly |
Determines whether the dictionary cannot be modified. |
IsSynchronized |
Gets a value that indicates whether access to the dictionary is synchronized (thread safe). |
Item[ModelItem] |
Gets or sets the item at the specified key. |
Item[Object] |
Gets or sets the item at the specified key. |
ItemType |
Gets the type of object that the item represents. (Inherited from ModelItem) |
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 |
Gets or sets the name or ID of the item. (Inherited from ModelItem) |
Parent |
Gets the item that is the parent of this item. (Inherited from ModelItem) |
Parents |
Gets all parents of this item. (Inherited from ModelItem) |
Properties |
Gets the public properties on this item. (Inherited from ModelItem) |
Root |
Gets the item that is the root of this tree. (Inherited from ModelItem) |
Source |
Gets the property that provided this value. (Inherited from ModelItem) |
Sources |
Gets all the properties that hold this value. (Inherited from ModelItem) |
SyncRoot |
Gets an object that can be used to synchronize access to this collection. |
Values |
Gets the values of the collection. |
View |
Gets a DependencyObject that graphically represents this item. (Inherited from ModelItem) |
Methods
Add(ModelItem, ModelItem) |
Adds the value to the dictionary under the given key. |
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() |
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) |
Opens an editing scope for the designer. (Inherited from ModelItem) |
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) |
Opens an editing scope for the designer. (Inherited from ModelItem) |
Clear() |
Clears the contents of the dictionary. |
Contains(KeyValuePair<ModelItem,ModelItem>) |
Determines whether the dictionary contains the given key/value pair. |
ContainsKey(ModelItem) |
Determines whether the dictionary contains the given key. |
ContainsKey(Object) |
Determines whether the dictionary contains the given key. |
CopyTo(KeyValuePair<ModelItem,ModelItem>[], Int32) |
Copies an array of key/value pairs into the given dictionary. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetCurrentValue() |
Returns the current value of the underlying model object that the ModelItem is wrapping. (Inherited from ModelItem) |
GetEnumerator() |
Returns an enumerator for the items in the dictionary. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(ModelItem) |
Removes the item with the specified key from the dictionary. |
Remove(Object) |
Removes the item from the dictionary. |
ToString() |
Returns a string representation of the underlying model object contained in this model item. (Inherited from ModelItem) |
TryGetValue(ModelItem, ModelItem) |
Retrieves the value for the given key, if possible. |
TryGetValue(Object, ModelItem) |
Retrieves the value for the given key, if possible. |
Events
CollectionChanged |
Raised when the contents of this collection change. |
PropertyChanged |
Implements |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32) |
Copies the elements of the ICollection to an array, starting at a particular array index. |
ICollection.Count |
Gets the number of elements contained in the ICollection. |
ICollection.IsSynchronized |
Gets a value that indicates whether access to the ICollection is synchronized (thread safe). |
ICollection.SyncRoot |
Gets an object that can be used to synchronize access to the ICollection. |
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>) |
Determines whether the dictionary contains the given key/value pair. |
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>) |
Removes the specified key/value pair from the dictionary. |
IDictionary.Add(Object, Object) |
Adds an element with the provided key and value to the IDictionary object. |
IDictionary.Clear() |
Removes all elements from the IDictionary object. |
IDictionary.Contains(Object) |
Determines whether the IDictionary object contains an element with the specified key. |
IDictionary.GetEnumerator() |
Returns the IDictionaryEnumerator object for the IDictionary object. |
IDictionary.IsFixedSize |
Gets a value that indicates whether the IDictionary object has a fixed size. |
IDictionary.IsReadOnly |
Gets a value that indicates whether the IDictionary object is read-only. |
IDictionary.Item[Object] |
Gets or sets the element with the specified key. |
IDictionary.Keys |
Gets an ICollection object that contains the keys of the IDictionary object. |
IDictionary.Remove(Object) |
Removes the element with the specified key from the IDictionary. |
IDictionary.Values |
Gets an ICollection object that contains the values in the IDictionary object. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |
Extension Methods
Focus(ModelItem) |
Sets the keyboard focus on the specified designer item. |
Focus(ModelItem, Int32) |
Sets the keyboard focus on the specified designer item. |
GetEditingContext(ModelItem) |
Retrieves the editing context of the specified model item. |
GetModelPath(ModelItem) |
Retrieves the path of the specified model item. |
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>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
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) |
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>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
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) |
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>) |
Returns a collection of the child elements of every element and document in the source collection. |
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>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |