This topic has not yet been rated - Rate this topic

ElementPropertyDescriptor.ResetValue Method

Resets the value of the domain property.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
public override void ResetValue(
	Object component
)

Parameters

component
Type: Object

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

ExceptionCondition
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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.