EditableObjectBehavior Enumeration

KGy SOFT Core Libraries Help
Represents the behavior of an ICanEdit implementation when it is treated as an IEditableObject.

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

public enum EditableObjectBehavior

  Member nameValueDescription
Disabled0IEditableObject methods are ignored, the object must be used as an ICanEdit implementation to utilize editing features.
DisableNesting1IEditableObject.EndEdit and IEditableObject.CancelEdit calls ignore possible multiple IEditableObject.BeginEdit calls and commit/revert all of the previous changes. EditLevel will be 0 after an IEditableObject.EndEdit or IEditableObject.CancelEdit call.
AllowNesting2 Number of IEditableObject.EndEdit and IEditableObject.CancelEdit calls must equal to previous IEditableObject.BeginEdit calls; otherwise, an InvalidOperationException will be thrown.
See Also