Class DiagramTextEditedEventArgs
Provides data for TextEdited: which Annotation 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
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 System.Diagnostics.Debug.WriteLine(System.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 Annotation 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 |
|---|
| System.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 |
|---|
| System.String |
PathAnnotation
Declaration
public PathAnnotation PathAnnotation { get; }
Property Value
| Type |
|---|
| PathAnnotation |
ShapeAnnotation
Declaration
public ShapeAnnotation ShapeAnnotation { get; }
Property Value
| Type |
|---|
| ShapeAnnotation |