ModelProperty 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.]

A ModelProperty represents a property on a ModelItem. Model properties are associated with an instance of an item, which allows them to have simple Value get/set properties instead of using the more cumbersome GetValue/SetValue mechanism of PropertyDescriptor.

The ModelProperty type exposes the following members.

Constructors

  Name Description
Protected method ModelProperty Creates a new ModelProperty.

Top

Methods

  Name Description
Public method ClearValue Clears the local value for the property.
Public method Equals Determines the equality for properties. Properties are equal if they have the same name and parent. (Overrides Object.Equals(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 GetHashCode Serves as a hash function for a ModelProperty. (Overrides Object.GetHashCode().)
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 SetValue Sets a local value on a property.
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the properties are equal. Properties are equal if they have the same name and parent.
Public operatorStatic member Inequality Determines whether the properties are unequal. Properties are equal if they have the same name and parent.

Top

Properties

  Name Description
Public property AttachedOwnerType Returns the type which defines this property if IsAttachedreturns true. Otherwise, returns nulla null reference (Nothing in Visual Basic).
Public property Attributes Returns the attributes declared on this property.
Public property Collection Returns Valuecast as a ModelItemCollection.
Public property ComputedValue Returns the currently computed value for this property. Setting a value on this property is the same as calling SetValue(Object), but can be used in data binding expressions.
Public property Converter Returns the type converter to use with this property.
Public property DefaultValue Returns the default value for this property. If the property does not define a default value this will return nulla null reference (Nothing in Visual Basic).
Public property Dictionary Returns Value cast as a ModelItemDictionary. If the property value is not a dictionary, this property will return nulla null reference (Nothing in Visual Basic).
Public property IsAttached Determines whether the property represents an attached property from a different type.
Public property IsBrowsable Determines whether the property can be shown in a property window.
Public property IsCollection Determines whether the value contained in the property is a ModelItemCollection.
Public property IsDictionary Determines whether the value contained in the property is a ModelItemDictionary.
Public property IsReadOnly Determines whether the property is read only.
Public property IsSet Determines whether the value of the property is set locally.
Public property Name
Public property Parent Returns the parent of this property.
Public property PropertyType Returns the data type of the property.
Public property Value Returns the value set into this property.

Top

See Also

Reference

ModelProperty Class

System.Activities.Design.Model Namespace