JD2022-TU1/main/tools/framework/JD.Collections/CollectionChangeAction.cs

37 lines
No EOL
1.1 KiB
C#

namespace JD.Collections
{
/// <summary>
/// Actions that can be listened to in an <see cref="ObservableList{T}"/>.
/// </summary>
public enum CollectionChangeAction
{
/// <summary>
/// An item was added in the collection.
/// </summary>
ItemAdded,
/// <summary>
/// An item was removed from the collection.
/// </summary>
ItemRemoved,
/// <summary>
/// An internal item changed its content.
/// </summary>
ItemChanged,
/// <summary>
/// The collection is clearing.
/// </summary>
Clearing,
/// <summary>
/// The collection was cleared.
/// </summary>
Cleared,
/// <summary>
/// Misc change. For example, when the collection is reordered, this is the only "change" happening. Can be ignored otherwise.
/// </summary>
Misc,
/// <summary>
/// Triggered after a BeginUdpate/EndUpdate operation is executed (can be omitted if nothing occurred during the operation).
/// </summary>
EndUpdated
}
}