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.
Unfortunately, activation email could not send to your email. Please try again.

Symbols & Connectors

Thread ID:

Created:

Updated:

Platform:

Replies:

78141 Dec 1,2008 01:11 PM Jan 7,2009 04:28 AM Windows Forms 2
loading
Tags: Diagram
Bracha
Asked On December 1, 2008 01:11 PM

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


Administrator [Syncfusion]
Replied On December 2, 2008 10:41 PM

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




Zaharia Octavian
Replied On January 7, 2009 04:28 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;