Class TextChangeEventArgs
Notifies when the label of an element undergoes editing.
Inheritance
System.Object
TextChangeEventArgs
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class TextChangeEventArgs : Object
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 |
---|---|
System.Boolean | 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 |
---|---|
System.String | Accepts the string value. |
OldValue
Gets the old text value of the element.
Declaration
public string OldValue { get; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value. |