Share via


ModelItem.GetCurrentValue Method

When overridden in a derived class, returns the current value of the underlying model object the ModelItem is wrapping.

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

Syntax

'Declaration
Public MustOverride Function GetCurrentValue As Object
'Usage
Dim instance As ModelItem 
Dim returnValue As Object 

returnValue = instance.GetCurrentValue()
public abstract Object GetCurrentValue()
public:
virtual Object^ GetCurrentValue() abstract
public abstract function GetCurrentValue() : Object

Return Value

Type: System.Object
Returns an object that represents the current value of the underlying model object the ModelItem is wrapping.

Remarks

You can inspect this object, but you should not make any changes to it. Changes made to the returned object will not be incorporated into the designer. The GetCurrentValue method may return either an existing or a new cloned instance of the object.

.NET Framework Security

See Also

Reference

ModelItem Class

ModelItem Members

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture