alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class BlockChangedEventArgs

    Provides data for the SfBlockEditor block-changed event.

    Inheritance
    object
    BlockChangedEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Remarks

    Each entry contains the Action performed and the associated Data.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved