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.
Hi,
I have various nodes linked together. The last node I programatically link is selected (even thoug I created all links using linkcmd.Link.EditStyle.AllowSelect = false;)
How can I remove the selection programatically? If I click on the diagram the selection disappears.
Please note I want to remove the selection, not delete the link.
Thanks in advance.
Nick
ADAdministrator Syncfusion Team June 22, 2006 11:06 AM UTC
Hi Nick,
If your intention is to clear the selection of a link,then you can go with this by clearing the node from the Diagram.Selectionlist .Please look into the following small code snippet.
// Check if the selected node is a Link
if(this.diagram1.Controller.SelectionList.First is Link )
{
this.diagram1.SelectionList.Clear();
this.diagram1.Controller.Model.UpdateViews();
}
Thanks for your interest in Syncfusion.Please let me know if this helps you.
Regards,
Praveena.