ModelItem Members

Include Protected Members
Include Inherited Members

Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a single item in the editing model. An item can be anything from a complex data structure down to a color or integer.

The ModelItem type exposes the following members.

Constructors

  Name Description
Protected method ModelItem Creates a new ModelItem.

Top

Methods

  Name Description
Public method BeginEdit Overloaded. Opens an editing scope for the designer.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetCurrentValue Returns the current value of the underlying model object the ModelItem is wrapping.
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 ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method FindParentModelItem Determines the parent model item, based on the specified item and parent type. (Defined by ModelItemExtensions.)
Public Extension Method GetEditingContext Retrieves the editing context of the specified model item. (Defined by ModelItemExtensions.)
Public Extension Method GetModelPath Retrieves the path of the specified model item. (Defined by ModelItemExtensions.)
Public Extension Method GetParentEnumerator() Overloaded. Retrieves an enumerator that contains the parents of the specified model item. (Defined by ModelItemExtensions.)
Public Extension Method GetParentEnumerator(Func<ModelItem, Boolean>) Overloaded. Retrieves an enumerator that contains the parents of the specified model item. (Defined by ModelItemExtensions.)
Public Extension Method IsItemInFlowchart Verifies whether a specified item is in the specified flowchart. (Defined by ActivityDesignerHelper.)
Public Extension Method IsItemInSequence Verifies whether a specified item is in the specified sequence. (Defined by ActivityDesignerHelper.)
Public Extension Method TryGetPropertyValue(ModelItem%, array<String[]) Overloaded. Attempts to retrieve the value of the specified item at the specified path. (Defined by ModelItemExtensions.)
Public Extension Method TryGetPropertyValue(ModelItemCollection%, array<String[]) Overloaded. Attempts to retrieve the value of the specified item at the specified path. (Defined by ModelItemExtensions.)
Public Extension Method TryGetPropertyValue(ModelItemDictionary%, array<String[]) Overloaded. Attempts to retrieve the value of the specified item at the specified path. (Defined by ModelItemExtensions.)
Public Extension Method TrySetPropertyValue Attempts to set the specified property value using the specified item, wrapped value, and path. (Defined by ModelItemExtensions.)

Top

Properties

  Name Description
Public property Attributes Returns the attributes declared on this item.
Public property Content Returns the ContentPropertyAttribute of the item, or nulla null reference (Nothing in Visual Basic).
Public property Events Returns the public events on this item.
Public property ItemType Returns the type of object the item represents.
Public property Name Represents the name or ID of the item.
Public property Parent Returns the item that is the parent of this item.
Public property Parents Returns all parents of this item.
Public property Properties Returns the public properties on this item.
Public property Root Returns the item that is the root of this tree.
Public property Source Returns the property that provided this value.
Public property Sources Returns all the properties that hold this value.
Public property View Returns the Visual or Visual3D representing the UI for this item.

Top

Events

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

Top

See Also

Reference

ModelItem Class

System.Activities.Design.Model Namespace