alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramTextEditedEventArgs

    Provides data for TextEdited: which Content was just updated as a result of a double-tap/double-click label edit committed in the WebView, on which owning Node or Connector, and with what text (both before and after).

    Inheritance
    object
    EventArgs
    DiagramTextEditedEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public sealed class DiagramTextEditedEventArgs : EventArgs
    Remarks

    Added specifically as a diagnostic hook: Content is already updated by the time this fires (it's raised right after, not instead of, the normal sync), so subscribing to this is a way to confirm — with a breakpoint, a WriteLine(string), or a bound label in the UI — that an edit actually made it from the WebView back to the native model, without needing to attach a JavaScript debugger to the hosted page.

    OldContent is the value of Content immediately before the new text was applied — captured off the live Content on the managed side, since the JavaScript wrapper does not forward EJ2's args.oldValue separately (the same string would otherwise consume a round-trip just to be echoed).

    Properties

    Connector

    Gets the owning connector, or null if the edited annotation belongs to a node.

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

    Content

    Gets the committed text (the same value annotation's Content property now holds).

    Declaration
    public string Content { get; }
    Property Value
    Type
    string

    Node

    Gets the owning node, or null if the edited annotation belongs to a connector.

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

    OldContent

    Gets the previous Content, as it stood immediately before this edit committed. Equal to Content when the edit was a no-op (e.g. a programmatic content reset to its current value).

    Declaration
    public string OldContent { get; }
    Property Value
    Type
    string

    PathAnnotation

    Gets the annotation that was edited. Its Content already reflects Content.

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

    ShapeAnnotation

    Gets the annotation that was edited. Its Content already reflects Content.

    Declaration
    public ShapeAnnotation? ShapeAnnotation { get; }
    Property Value
    Type
    ShapeAnnotation
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved