ObservableObjectBaseResetProperty Method

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.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
protected bool ResetProperty(
	string propertyName,
	bool invokeChangedEvent = true
)

Parameters

propertyName  String
The name of the property to reset.
invokeChangedEvent  Boolean  (Optional)
to allow raising the PropertyChanged event; otherwise, .

Return Value

Boolean
if property has been reset (it existed previously); otherwise, .

See Also