Share via


ModelProperty.SetValue Method

When overridden in a derived class, sets a local value on a property.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function SetValue ( _
    value As Object _
) As ModelItem
public abstract ModelItem SetValue(
    Object value
)
public:
virtual ModelItem^ SetValue(
    Object^ value
) abstract
abstract SetValue : 
        value:Object -> ModelItem 
public abstract function SetValue(
    value : Object
) : ModelItem

Parameters

  • value
    Type: System.Object
    An object representing the value to be set.

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
If the value is already a ModelItem, the input value is returned. If the value is not a ModelItem, a newly created ModelItem wrapping the value is returned.

Remarks

Setting a property to nulla null reference (Nothing in Visual Basic) is valid, but this is not the same as calling the ClearValue method.

.NET Framework Security

See Also

Reference

ModelProperty Class

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture