Hi Christian,
Thanks for using Syncfusion products and sorry for the delay in getting back to you.
1. “Modifying Link Tools”
We suggest you to create a custom connector by inheriting from the base Connector class and modify the LineStyle’s ‘LineWidth’ and ‘LineColor’ property of the custom Connector to achieve your requirement.
Here is the sample with Custom connector:
F102623-342986455.zip2 & 3. Can I change the size and color of the port indicator rectangles? and
Can I change the link recognition area for my ports so that it covers the entire symbol and not just a point in the middle?
To change Color:
The color of the highlight rectangle drawn around the port is based on the LineColor of that port. We suggest you to change the Port.LineStyle’s ‘LineColor’ property to achieve your requirement. Please refer the below code snippet.
Here is the code:
[C#]
Syncfusion.Windows.Forms.Diagram.Rectangle rect = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 50, 100, 70);
diagram1.Model.AppendChild(rect);
//Port
ConnectionPoint cp1 = new ConnectionPoint();
cp1.Position = Position.MiddleLeft;
cp1.ConnectionPointSize= ConnectionPointSize.Large;
cp1.LineStyle.LineColor = Color.Red;
rect.Ports.Add(cp1);
To change size and recognition area of ports:
Currently, the size of the highlight rectangle drawn and the recognition area are calculated based on the default size of the port only. This has been suspected to be a defect. Please create a DT incident for your query so that we can update the patch for this issue.
You can create the DT incident from the following link.
<
http://www.syncfusion.com/account/dashboard>In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.
4. I activate a link tool and when the mouse is over a port it is highlighted without clicking first?
Currently we don’t have support to highlight the port when the Tool’s cursor is move over the mouse. This has been suspected to be a feature. Please create a DT incident for your query so that we can update the patch for this feature.
You can create the DT incident from the following link.
<
http://www.syncfusion.com/account/dashboard>In the interests of maintaining confidentiality, we have a policy of not sharing patches or otherwise proprietary customer specific information in the public Forum.
Please let us know if you have any queries.
Regards,
Amsath Ali. M