alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class TextChangeEventArgs

    Notifies when the label of an element undergoes editing.

    Inheritance
    object
    TextChangeEventArgs
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TextChangeEventArgs
    Examples
    <SfDiagramComponent  TextChanged="@textedit">
    </SfDiagramComponent>
    private void textedit(TextChangeEventArgs args)
    {
        args.Cancel = true;
    }

    Constructors

    TextChangeEventArgs()

    Declaration
    public TextChangeEventArgs()

    Properties

    Annotation

    Represents the annotation which is being edited.

    Declaration
    public Annotation? Annotation { get; }
    Property Value
    Type
    Annotation

    Cancel

    Gets or sets the value that indicates whether to cancel the event or not.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    bool

    When textchanging event is triggered, cancel property in TextChangeEventArgs will be applicable

    Remarks

    It will be applicable only when textchangingevent is triggered.

    Element

    Gets a node or connector in which annotation is being edited

    Declaration
    public IDiagramObject? Element { get; }
    Property Value
    Type
    IDiagramObject

    NewValue

    Gets the new text value of the element that is being changed

    Declaration
    public string? NewValue { get; }
    Property Value
    Type Description
    string

    Accepts the string value.

    OldValue

    Gets the old text value of the element.

    Declaration
    public string? OldValue { get; }
    Property Value
    Type Description
    string

    Accepts the string value.

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