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.
I would like to know whether it is possible to disable CentralPort of line. As far as I know such goal can be easily achieved when connection is established programmatically (by setting EnableCentralPort = false). However in my case connection can be added manually (e.g. user clicks appropriate menu item and LineLinkTool is activated). As a result user can draw line from rectangle to another line. But it should not be possible to add a connection between links - only rectangles must be connected through the links. Could you please provide me with idea of how to disable line ports so that it will be impossible to connect the lines?
ADAdministrator Syncfusion Team December 2, 2008 11:53 AM UTC
Hi Bork,
The Central Port of the Line can be disabled using the Model.EventSink's NodeCollectionChanged Event handler and performing the following code:
***** if (evtArgs.Element is LineConnector) { LineConnector lc = evtArgs.Element as LineConnector; lc.EnableCentralPort = false; } *****
Let me know if this helps.
Happy Coding!
- Ajeet
>Hi,
I would like to know whether it is possible to disable CentralPort of line. As far as I know such goal can be easily achieved when connection is established programmatically (by setting EnableCentralPort = false). However in my case connection can be added manually (e.g. user clicks appropriate menu item and LineLinkTool is activated). As a result user can draw line from rectangle to another line. But it should not be possible to add a connection between links - only rectangles must be connected through the links. Could you please provide me with idea of how to disable line ports so that it will be impossible to connect the lines?
Thanks, Bork
MAMagicXtrDecember 2, 2008 12:09 PM UTC
Thanks a lot. It's even easier than I've thought:)