Class BlockChangedEventArgs
Provides data for the SfBlockEditor block-changed event.
Inherited Members
Namespace: Syncfusion.Blazor.BlockEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class BlockChangedEventArgs
Remarks
The event arguments contain a collection of one or more BlockChange entries describing the operations performed (insertion, deletion, move, or update). Consumers should iterate through Changes to handle each operation.
Examples
Iterates through all changes and logs their details.
void HandleChanges(BlockChangedEventArgs e)
{
foreach (var c in e.Changes)
{
Console.WriteLine($"{c.Action}: block={c.Data?.Block?.ID}, prevBlock={c.Data?.PreviousBlock?.ID}");
}
}
Constructors
BlockChangedEventArgs()
Declaration
public BlockChangedEventArgs()
Properties
Changes
Gets or sets the list of block change operations performed in the editor.
Declaration
public List<BlockChange> Changes { get; set; }
Property Value
| Type | Description |
|---|---|
| List<BlockChange> | A List<T> of BlockChange entries describing each operation. The default value is an empty collection. |