ElementPropertyDescriptor::ResetValue Method (Object^)

 

Resets the value of the domain property.

Namespace:   Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

public:
virtual void ResetValue(
	Object^ component
) override

Parameters

component
Type: System::Object^

The model element for which to reset the value of the property.

Exception Condition
ArgumentException

The described property is not bound to a model element and component is not derived from the ModelElement type.

This method resets the property to its default value inside a transaction.

If the ModelElement property of the descriptor is null, then the component parameter is used as the model element on which to reset the property; otherwise, this method resets the value of the property from the model element with which it is associated. This association is formed when the property descriptor is created.

If the domain property is read-only or does not have a default value, then its value is not reset.

Return to top
Show: