KGy SOFT

ObservableObjectBaseResetProperty Method

KGy SOFT Core Libraries Help
Resets the property of the specified name, meaning, it will be removed from the underlying storage so the getter methods will return the default value again.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

protected bool ResetProperty(
	string propertyName,
	bool invokeChangedEvent = true
)

Parameters

propertyName
Type: SystemString
The name of the property to reset.
invokeChangedEvent (Optional)
Type: SystemBoolean
 to allow raising the PropertyChanged event; otherwise, .

Return Value

Type: Boolean
 if property has been reset (it existed previously); otherwise, .
See Also

Reference