EditableObjectBehavior Enumeration

Represents the behavior of an ICanEdit implementation when it is treated as an IEditableObject.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public enum EditableObjectBehavior

Members

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