We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Symbols & Connectors

I have custom symbol which is group of few elements.
How should I define ports - so all links will use my declared points only?

FYI – I’m creating orthogonal links programmatically using the following:
public class CustomOrthogonalLink : OrthogonalConnector
{
public CustomOrthogonalLink(PointF pt1, CompassHeading heading1, PointF pt2, CompassHeading heading2)
: base(pt1, pt2)
{
if ((heading1 == CompassHeading.None) || (heading2 == CompassHeading.None))
Geometry.CalcEndpointDirections(pt1, pt2, out heading1, out heading2);

float padding = 1;
PointF[] pts = Geometry.CalcOrthogonalPoints(pt1, heading1, pt2, heading2, padding, padding, padding, padding);

this.InitializeOrthogonalLine(pts);

this.HeadingHead = heading1;
this.HeadingTail = heading2;
}
}

Thanks,
-Bracha


2 Replies

AD Administrator Syncfusion Team December 3, 2008 03:41 AM UTC

Hi Bracha,

Greetings!

Do you mean to define ports at some location over the symbol? I mean, end user defines the location on the Custom Group and custom Port is placed at that location so that the connections can be made easily. Am I right in my understanding?

This information would help me resolve your issue accurately and in time, Thanks!

Warm Regards,
Ajeet





ZO Zaharia Octavian January 7, 2009 09:28 AM UTC

Hi!

I have a problem! I have a custom shape (a group) and I want to change the fill style of it at run time. Can there be done a shape (single not group) from other shapes? For example: an Elise and a rectangle combined to form a new shape not a group?

Thanks,
Dexter


Loader.
Live Chat Icon For mobile
Up arrow icon