The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
ADAdministrator Syncfusion Team September 8, 2004 07:29 AM
Hi Georg,
The Model''s BoundsChanged event is fired whenever any node is resized and you can use this event to do what you are seeking.
You can refer to the sample posted in this posting for more details.
Regards,
Arun
ADAdministrator Syncfusion Team October 14, 2004 05:38 AM
If I do not want to drag-move a link node(but let click to select it), How do I put code in
(what) event ?
Thanks,
>Hi Georg,
>
>The Model''s BoundsChanged event is fired whenever any node is resized and you can use this event to do what you are seeking.
>
>You can refer to the sample posted in this posting for more details.
>
>Regards,
>Arun
>
ADAdministrator Syncfusion Team October 14, 2004 07:33 AM
Hi
You can set the Link''s EditStyle.AllowMove property to false to prevent links from being moved. Here is a code snippet:
//Custom Link
protected Link CreateLink(PointF[] pts)
{
Link link = new Link(Link.Shapes.Line, pts);
link.EndPoints.LastEndPointDecorator = new EndPointDecorator(EndPointVisuals.ClosedArrow);
// Links cannot be moved
link.EditStyle.AllowMove = false;
return link;
}
//Create and Register the Link Tool for the custom link
Tool linkTool = this.diagram1.Controller.GetTool("LinkTool");
((LinkTool)linkTool).LinkFactory = new LinkFactory(this.CreateLink);
this.diagram1.Controller.RegisterTool(linkTool);
//Activate the Link Tool
this.diagram1.ActivateTool("LinkTool");
Regards
Arun
ADAdministrator Syncfusion Team October 14, 2004 12:19 PM
Thank you! It works.
>Hi
>
>You can set the Link''s EditStyle.AllowMove property to false to prevent links from being moved. Here is a code snippet:
>
>//Custom Link
>protected Link CreateLink(PointF[] pts)
>{
>Link link = new Link(Link.Shapes.Line, pts);
>link.EndPoints.LastEndPointDecorator = new EndPointDecorator(EndPointVisuals.ClosedArrow);
>// Links cannot be moved
>link.EditStyle.AllowMove = false;
>return link;
>
>}
>
>//Create and Register the Link Tool for the custom link
>Tool linkTool = this.diagram1.Controller.GetTool("LinkTool");
>((LinkTool)linkTool).LinkFactory = new LinkFactory(this.CreateLink);
>this.diagram1.Controller.RegisterTool(linkTool);
>
>//Activate the Link Tool
>this.diagram1.ActivateTool("LinkTool");
>
>Regards
>Arun
>