ModelProperty Class

.NET Framework (current version)
 

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.

Namespace:   System.Activities.Presentation.Model
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

System.Object
  System.Activities.Presentation.Model.ModelProperty

public abstract class ModelProperty

NameDescription
System_CAPS_protmethodModelProperty()

Creates a new ModelProperty.

NameDescription
System_CAPS_pubpropertyAttachedOwnerType

Returns the type that defines this property if IsAttached returns true; otherwise, returns null.

System_CAPS_pubpropertyAttributes

Returns the attributes declared on this property.

System_CAPS_pubpropertyCollection

Returns Value cast as a ModelItemCollection.

System_CAPS_pubpropertyComputedValue

Returns the currently computed value for this property. Setting a value on this property is the same as calling SetValue, but can be used in data binding expressions.

System_CAPS_pubpropertyConverter

Returns the type converter to use with this property.

System_CAPS_pubpropertyDefaultValue

Returns the default value for this property. If the property does not define a default value, this will return null.

System_CAPS_pubpropertyDictionary

Returns Value cast as a ModelItemDictionary. If the property value is not a dictionary, this property will return null.

System_CAPS_pubpropertyIsAttached

Determines whether the property represents an attached property from a different type.

System_CAPS_pubpropertyIsBrowsable

Determines whether the property can be shown in a property window.

System_CAPS_pubpropertyIsCollection

Determines whether the value contained in the property is a ModelItemCollection.

System_CAPS_pubpropertyIsDictionary

Determines whether the value contained in the property is a ModelItemDictionary.

System_CAPS_pubpropertyIsReadOnly

Determines whether the property is read only.

System_CAPS_pubpropertyIsSet

Determines whether the value of the property is set locally.

System_CAPS_pubpropertyName

Gets the name of this property.

System_CAPS_pubpropertyParent

Returns the parent of this property.

System_CAPS_pubpropertyPropertyType

Returns the data type of the property.

System_CAPS_pubpropertyValue

Returns the value set into this property.

NameDescription
System_CAPS_pubmethodClearValue()

Clears the local value for the property.

System_CAPS_pubmethodEquals(Object)

Determines the equality for properties. Properties are equal if they have the same name and parent.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a ModelProperty.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodSetValue(Object)

Sets a local value on a property.

System_CAPS_pubmethodToString()

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

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(ModelProperty, ModelProperty)

Determines whether the properties are equal. Properties are equal if they have the same name and parent.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ModelProperty, ModelProperty)

Determines whether the properties are unequal. Properties are equal if they have the same name and parent.

The value of a ModelProperty may come from a locally set value, or it may be inherited from somewhere higher up in the element hierarchy. Use the P:System.Activities.Design.Model.ModelItem.Source property of the value returned by Value to determine the source of the property value.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: