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c`ZUf3#RWYfx7Lv2=s`F{Q~DOUrBg
z&}Kma%x;cmmjT&?IznUs04)SLy>3?O=#GT(m>FdlIKx1T?87WwzU=ga4*;vQq;7IV1yix
zkWpQmK^OGm5N8(G3vlS*V(CAdkxe6Nn(bL4_@JH`+TE%};IQ26oS_;wVs<
zqp-Dep`sN0NdQk7^)v<$rg#{P_4;-wAGZeO4gB1@2v9}dWuP|4xwl;FJZ7kXEn<&j
zEK0Q~;nJlTHg7EmX&6B~%nNwDpeYcdNb<`D5O2%{Asnx0G
z`0R^#L{HPo-d^(a{vdOnEA6jVPhjHY~f$qXU#Z^?OJ`Z&~TopV?pqqaDPc
z-fFn5aJo6Q9y?o%jXSkHf@qQsxPf|~dg-1bU|`BZ
zT7c#Vj{PbW7)Dfii=X#2^qT6Fdv|5UDD-OPctA+X@EL#*3(ViDKIZx2{c4nVv&07SXadLAPju_o*<^5|cZS1Co00
zb|~Rf4Rv*o!NK|1T`^BRrY?x-WvIB1_c=_Vltep>=1Ww)(#*K;-2Hu*g!O2T{iqNFJqzJ`0)x
zHT;YDut}in!T?UBAOhc$;-Nq-BW0}Xx95#kAEliR8iiv+-5Jz|ePUJyMs~m!)OQ|0
zO-V4&>wtTMe?H-uRhOu1{q{M|4HUDiBdwg;iWmz6`LH*AeRpfbE;|CiY$5bb>&0dp
zH=v2=Fosn^7-X6EAMIm`-jrsM$Hc(!1-`p2N-Z%fOIPHcz0cI`q9;rxyF|Jr|4izp
zuN#iHLSU|9zTI
oKalnZG5P$W=>K1&?V4vP5Q@6KH=%0}%yLBaklMlI{l-531Axk!a{vGU
literal 0
HcmV?d00001
diff --git a/blazor/diagram/images/RotationAngleAnnotation.png b/blazor/diagram/images/RotationAngleAnnotation.png
new file mode 100644
index 0000000000000000000000000000000000000000..3651b8c456f693adcd6efee7cd3314ecb9fe649c
GIT binary patch
literal 3628
zcmd^CdsLEn8pdsR+{sa=ZDt%pVJa_mWaVUIiU^dtGFnPno7qLS)UdouW}x8Cnrp6u
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fjlk8OEbId}T=cY6Re-uWjZL-Thh*r^e-
z2kASAL-$$tI<%@rCQn^*l61+51X^6DbG)~!25}Kf9i?61C&tro-jVc-iTK^AoSGf2
zV>h{1s#Me9G!Xnm9P5Z$R#senjTtHBa01{8E227cjBR6NJ|q|12OZx$#GAnAHX_s(W}b|)|<3!#Y=|<
zY@f}IO4E0zwqIQSyZtS|6h3s>;XdrwWI??x&W7x}*ro3BY1q~MM#{tK@VlxmbTI<7
z6H-{I^Ny#Jz^)cVlLm!X-Tq5=(faj(!$D?yF4wo4aA9;A$M7l#sSKu*$+~X>Fhbo^
zj@ZMK5pNTNmRhydi8
zyu+sMaj6EUAHt}{7o4#)Q)E{d0TfLPuW`D59)&n`wfjtfGyX$xgL$8g^`v*508kbM
z$YEN12A*3u>j>DM<`NubWODiAJw-ppS|#b;|M6|{Vgrl@JC6Wa{p&x)gh?m+D%g)MEMexQOS1##MEI@J&FeD)Uu`b8
zu`VH=e(=~f0D865##o@>6EOIm&v(_uUNRoZ&u#QC!}y1&elLuYxWeerUscL*XI2Js
zeUed`2+$?jzCOHovq9ikDSdb@yQ95H_$
z8{KFh701YgQ;VXB>e#LqoslJg*s5=PHJ!xicUL*TLA7hrgo^{J*RJ?!)pwRd%Sc
zdqwes@(4=1Spglk)VwzbbkX=jfSv)H0m3VOdBOhquK(U!b@{ir;wemi%En$i{q;hQ
Q@p}c>zc&m_4NCg*ug>)fdjJ3c
literal 0
HcmV?d00001
diff --git a/blazor/diagram/swimlane/Swimlane-images/PhaseOrientation.png b/blazor/diagram/swimlane/Swimlane-images/PhaseOrientation.png
new file mode 100644
index 0000000000000000000000000000000000000000..ef9985624a831e46499128cdc30cb0aebebe99bd
GIT binary patch
literal 3301
zcmeHKdr;C_9{-hYTE2VXsOcKl9$Ty3e63GXNh|YleUYJH>rKrU6(I@=m5y4Pwt25Q
zDq3o$Afh3@NUcm=*T5|CE!38eK%!JYQDA9zX6Me_ox08bd;d6d=6fD1;FF1^|H0$rI230N7NiYN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cXOjnpaPCd$o~M!-
zE6%gI4{>F6Qr9v{I?D1eEdg>QOk=;uB`KsC`zWmuvhqgg6;?gGY#LkL#|sO@(DAw#
zs{8u!<6Ve|nwp)hp{-E{Rp{Tz*`iGawrSN8Nix$
z|I`W5v<6PM;Qq3VRYK5f~SE|EU6&if`!TN9!}F^
ztl(lqFBTWQY?n`OA+)6g`sQA=JezPqIeu-A%IYNTuhUPAYusnI-U_
zp|+Z)AYyCSWua|639L{`Q#KH)nVu|JL%FLq*@3Z6d#V(6X{?Ow#^K60Oe>|1F
z1+jkl;^5`Scen2aDl;^%9{Betko{#-b_$ZOnQQ~e&vq-?NP!{`LX+&y@Uh*ks3WU)
z%pclle5H_mxy=1)R_C^#YXudlkm#|_UA?vssy3JI7hU23sQF}n4e2lZi2Yn}OVT^p
zdJLj`_(7mJU6f~MPXxQJrM5UU$9E}(Z{}Xy6c5bP#raA_sC>mr+1!5PE>Esl6B;*$
zb@a=c_V0ePcE-S5Hj7f~uOaVCQ&H6l{!rH|6GT%+%=ztm5$ePh^Gb+&^U
Date: Mon, 23 Jun 2025 13:05:58 +0530
Subject: [PATCH 6/9] 965225: UG Changes committed
---
blazor/diagram/connectors/events.md | 216 +++++++++++-----------------
blazor/diagram/events.md | 75 ++++++++++
blazor/diagram/nodes/events.md | 134 ++---------------
3 files changed, 163 insertions(+), 262 deletions(-)
diff --git a/blazor/diagram/connectors/events.md b/blazor/diagram/connectors/events.md
index 73ca056495..2f93026b0b 100644
--- a/blazor/diagram/connectors/events.md
+++ b/blazor/diagram/connectors/events.md
@@ -452,7 +452,8 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Connectors/Events/SegmentCollectionChangeEvent)
## CollectionChange Event
-* The diagram provides specific events that are triggered when nodes or connectors are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the node or connector collection undergoes changes.
+
+* The diagram provides specific events that are triggered when connectors are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the node or connector collection undergoes changes.
|Event Name|Arguments|Description|
|------------|-----------|------------------------|
@@ -467,25 +468,28 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
@code{
SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
- // Notify the Collection Changed event while changing the collection of the node or connector at run time.
+ // Notify the Collection Changed event while changing the collection of the connector at run time.
private void OnCollectionChanged(CollectionChangedEventArgs args)
{
//Action to be performed.
@@ -496,7 +500,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseEnter Event
-The [MouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseEnter) event is triggered when the mouse pointer enters the boundary of a node or connector in the diagram. This event provides valuable information about the element being interacted with. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseEnter) event is triggered when the mouse pointer enters the boundary of a connector in the diagram. This event provides valuable information about the element being interacted with. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -506,23 +510,26 @@ The [MouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram
@code{
SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
private void OnMouseEnter(DiagramElementMouseEventArgs args)
{
@@ -534,7 +541,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseLeave Event
-The [MouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseLeave) event is triggered when the mouse pointer exits the boundaries of a node or connector in the diagram. This event provides valuable information about the element being left. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseLeave) event is triggered when the mouse pointer exits the boundaries of a connector in the diagram. This event provides valuable information about the element being left. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -544,23 +551,26 @@ The [MouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram
@code{
SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
private void OnMouseLeave(DiagramElementMouseEventArgs args)
{
@@ -572,7 +582,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseHover Event
-The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseHover) event is triggered when the mouse pointer hovers over a node or connector in the diagram. This event provides valuable information about the element being hovered. For detailed information about the event arguments, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseHover) event is triggered when the mouse pointer hovers over a connector in the diagram. This event provides valuable information about the element being hovered. For detailed information about the event arguments, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -582,23 +592,26 @@ The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram
@code{
SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
private void OnMouseHover(DiagramElementMouseEventArgs args)
{
@@ -608,117 +621,44 @@ The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram
```
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/MouseHoverEvent)
-## KeyDown Event
-
-The [KeyDown](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyDown) event is triggered when a user presses any key on the keyboard while the diagram component has focus. This event provides a powerful way to capture and respond to keyboard interactions. For detailed information about the event arguments and properties available, please refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html).
-
-
-```cshtml
-@using Syncfusion.Blazor.Diagram
-@using System.Collections.ObjectModel
-
-
-
-
-@code{
- SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
- protected override void OnInitialized()
- {
- Node node = new Node()
- {
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
- };
- nodes.Add(node);
- }
- private void OnKeyDown(KeyEventArgs args)
- {
-
- }
-}
-```
-You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/KeyDownEvent)
-
-## KeyUp Event
-
-The [KeyUp](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyUp) event is triggered when a user releases a key on the keyboard. This event provides valuable information about the released key and can be used to implement custom functionality or keyboard shortcuts in your Blazor diagram. For detailed information about the event arguments, refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html), which outlines all the properties and methods available for handling this event effectively.
-
-```cshtml
-@using Syncfusion.Blazor.Diagram
-@using System.Collections.ObjectModel
-
-
-
-
-@code{
- SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
- protected override void OnInitialized()
- {
- Node node = new Node()
- {
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
- };
- nodes.Add(node);
- }
- private void OnKeyUp(KeyEventArgs args)
- {
-
- }
-}
-```
-You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/KeyUpEvent)
-
## PropertyChanged Event
-The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_PropertyChanged) event is triggered when any property of the diagram component is modified at runtime. This event provides valuable information about the changes occurring in the diagram. For a detailed understanding of the event arguments, refer to the [PropertyChangedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.PropertyChangedEventArgs.html).
+
+The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_PropertyChanged) event is triggered when connector's property of the diagram component is modified at runtime. This event provides valuable information about the changes occurring in the diagram. For a detailed understanding of the event arguments, refer to the [PropertyChangedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.PropertyChangedEventArgs.html).
```cshtml
@using Syncfusion.Blazor.Diagram
+ Connectors="@connectors"
+ PropertyChanged="OnNodePropertyChanged">
@code {
SfDiagramComponent diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- // Initial position and size of the node
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100,
- Style = new ShapeStyle { Fill = "#6495ED", StrokeColor = "white" }
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
- // Method to handle Node Property Changed event
+ // Method to handle Property Changed event
private void OnNodePropertyChanged(PropertyChangedEventArgs args)
{
- if (args.Element is Node changedNode)
+ if (args.Element is Connector changedNode)
{
- // Logic to handle the property change for the specific node
+ // Logic to handle the property change for the specific connector
Console.WriteLine($"Node ID: {changedNode.ID} property changed.");
// Additional logic to handle updates
}
@@ -728,7 +668,8 @@ The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.D
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/PropertyChangedEvent)
## CollectionChange Event
-* The diagram provides specific events that are triggered when nodes or connectors are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the node or connector collection undergoes changes.
+
+* The diagram provides specific events that are triggered when connectors are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the connector collection undergoes changes.
|Event Name|Arguments|Description|
|------------|-----------|------------------------|
@@ -743,23 +684,26 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
@code{
SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
+ //Defines diagram's connector collection.
+ DiagramObjectCollection connectors = new DiagramObjectCollection();
protected override void OnInitialized()
{
- Node node = new Node()
+ Connector Connector = new Connector()
{
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
+ ID = "connector1",
+ // Set the source and target point of the connector.
+ SourcePoint = new DiagramPoint() { X = 100, Y = 100 },
+ TargetPoint = new DiagramPoint() { X = 200, Y = 200 },
+ // Type of the connector segments.
+ Type = ConnectorSegmentType.Straight
};
- nodes.Add(node);
+ connectors.Add(Connector);
}
// Notify the Collection Changed event while changing the collection of the node or connector at run time.
private void OnCollectionChanged(CollectionChangedEventArgs args)
diff --git a/blazor/diagram/events.md b/blazor/diagram/events.md
index 5400122b2d..a9a9dfd03c 100644
--- a/blazor/diagram/events.md
+++ b/blazor/diagram/events.md
@@ -84,6 +84,81 @@ The [Click](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDi
```
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/ClickEvent)
+## KeyDown Event
+
+The [KeyDown](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyDown) event is triggered when a user presses any key on the keyboard while the diagram component has focus. This event provides a powerful way to capture and respond to keyboard interactions. For detailed information about the event arguments and properties available, please refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html).
+
+
+```cshtml
+@using Syncfusion.Blazor.Diagram
+@using System.Collections.ObjectModel
+
+
+
+
+@code{
+ SfDiagramComponent Diagram;
+ DiagramObjectCollection nodes = new DiagramObjectCollection();
+ protected override void OnInitialized()
+ {
+ Node node = new Node()
+ {
+ OffsetX = 250,
+ OffsetY = 250,
+ Width = 100,
+ Height = 100
+ };
+ nodes.Add(node);
+ }
+ private void OnKeyDown(KeyEventArgs args)
+ {
+
+ }
+}
+```
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/KeyDownEvent)
+
+## KeyUp Event
+
+The [KeyUp](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyUp) event is triggered when a user releases a key on the keyboard. This event provides valuable information about the released key and can be used to implement custom functionality or keyboard shortcuts in your Blazor diagram. For detailed information about the event arguments, refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html), which outlines all the properties and methods available for handling this event effectively.
+
+```cshtml
+@using Syncfusion.Blazor.Diagram
+@using System.Collections.ObjectModel
+
+
+
+
+@code{
+ SfDiagramComponent Diagram;
+ DiagramObjectCollection nodes = new DiagramObjectCollection();
+ protected override void OnInitialized()
+ {
+ Node node = new Node()
+ {
+ OffsetX = 250,
+ OffsetY = 250,
+ Width = 100,
+ Height = 100
+ };
+ nodes.Add(node);
+ }
+ private void OnKeyUp(KeyEventArgs args)
+ {
+
+ }
+}
+```
+You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/KeyUpEvent)
+
## DragStart Event
* The [DragStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_DragStart) event is triggered when a user begins dragging a symbol from the symbol palette into the diagram canvas. This event provides valuable information about the drag operation initiation. For detailed information about the event arguments and properties available, refer to the [DragStartEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DragStartEventArgs.html).
diff --git a/blazor/diagram/nodes/events.md b/blazor/diagram/nodes/events.md
index c032e934ed..4f40852d89 100644
--- a/blazor/diagram/nodes/events.md
+++ b/blazor/diagram/nodes/events.md
@@ -311,52 +311,9 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Nodes/Events/NodeCreatingEvent)
-## Click Event
-
-The [Click](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_Click) event is triggered when a user interacts with a node by clicking on it. This event provides valuable information about the clicked element and the click location. For detailed information about the event arguments, please refer to the [ClickEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.ClickEventArgs.html).
-
-```cshtml
-
-
-
-@code{
- SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
-
- protected override void OnInitialized()
- {
- Node node = new Node()
- {
- // Initial position of the node
- OffsetX = 250,
- OffsetY = 250,
- // Dimensions of the node
- Width = 100,
-
- Height = 100
- };
- nodes.Add(node);
- }
-
- private void OnClick(ClickEventArgs args)
- {
- // Check if a node is clicked by verifying the clicked element type
- if (args.Element is Node node)
- {
- Console.WriteLine($"Node clicked: ID = {node.Id}");
- // Additional logic for when a node is clicked can go here
- }
- }
-}
-```
-You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/ClickEvent)
-
## PropertyChanged Event
-The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_PropertyChanged) event is triggered when any property of the diagram component is modified at runtime. This event provides valuable information about the changes occurring in the diagram. For a detailed understanding of the event arguments, refer to the [PropertyChangedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.PropertyChangedEventArgs.html).
+
+The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_PropertyChanged) event is triggered when node's property of the diagram component is modified at runtime. This event provides valuable information about the changes occurring in the diagram. For a detailed understanding of the event arguments, refer to the [PropertyChangedEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.PropertyChangedEventArgs.html).
```cshtml
@using Syncfusion.Blazor.Diagram
@@ -400,7 +357,8 @@ The [Property Changed](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.D
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/PropertyChangedEvent)
## CollectionChange Event
-* The diagram provides specific events that are triggered when nodes or connectors are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the node or connector collection undergoes changes.
+
+* The diagram provides specific events that are triggered when nodes are added to or removed from the diagram. These events offer opportunities for customization and are invoked whenever the node collection undergoes changes.
|Event Name|Arguments|Description|
|------------|-----------|------------------------|
@@ -433,7 +391,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
};
nodes.Add(node);
}
- // Notify the Collection Changed event while changing the collection of the node or connector at run time.
+ // Notify the Collection Changed event while changing the collection of the node at run time.
private void OnCollectionChanged(CollectionChangedEventArgs args)
{
//Action to be performed.
@@ -444,7 +402,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseEnter Event
-The [MouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseEnter) event is triggered when the mouse pointer enters the boundary of a node or connector in the diagram. This event provides valuable information about the element being interacted with. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseEnter](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseEnter) event is triggered when the mouse pointer enters the boundary of a node in the diagram. This event provides valuable information about the element being interacted with. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -482,7 +440,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseLeave Event
-The [MouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseLeave) event is triggered when the mouse pointer exits the boundaries of a node or connector in the diagram. This event provides valuable information about the element being left. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseLeave](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseLeave) event is triggered when the mouse pointer exits the boundaries of a node in the diagram. This event provides valuable information about the element being left. For a comprehensive understanding of the event arguments and their properties, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -520,7 +478,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
## MouseHover Event
-The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseHover) event is triggered when the mouse pointer hovers over a node or connector in the diagram. This event provides valuable information about the element being hovered. For detailed information about the event arguments, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
+The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_MouseHover) event is triggered when the mouse pointer hovers over a node in the diagram. This event provides valuable information about the element being hovered. For detailed information about the event arguments, refer to the [DiagramElementMouseEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.DiagramElementMouseEventArgs.html).
```cshtml
@@ -556,82 +514,6 @@ The [MouseHover](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram
```
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/MouseHoverEvent)
-## KeyDown Event
-
-The [KeyDown](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyDown) event is triggered when a user presses any key on the keyboard while the diagram component has focus. This event provides a powerful way to capture and respond to keyboard interactions. For detailed information about the event arguments and properties available, please refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html).
-
-
-```cshtml
-@using Syncfusion.Blazor.Diagram
-@using System.Collections.ObjectModel
-
-
-
-
-@code{
- SfDiagramComponent Diagram;
- DiagramObjectCollection nodes = new DiagramObjectCollection();
- protected override void OnInitialized()
- {
- Node node = new Node()
- {
- OffsetX = 250,
- OffsetY = 250,
- Width = 100,
- Height = 100
- };
- nodes.Add(node);
- }
- private void OnKeyDown(KeyEventArgs args)
- {
-
- }
-}
-```
-You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Events/KeyDownEvent)
-
-## KeyUp Event
-
-The [KeyUp](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_KeyUp) event is triggered when a user releases a key on the keyboard. This event provides valuable information about the released key and can be used to implement custom functionality or keyboard shortcuts in your Blazor diagram. For detailed information about the event arguments, refer to the [KeyEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.KeyEventArgs.html), which outlines all the properties and methods available for handling this event effectively.
-
-```cshtml
-@using Syncfusion.Blazor.Diagram
-@using System.Collections.ObjectModel
-
-