ConnectionPointType

What does the ConnectionPointType do for a port? Intellisense tells me for type Outgoing "Specifies whether port accepts outgoing connections." I can connect to a port of this type from either end of a new link. So what defines an outgoing connection? I want to only allow connections to come in or out of a port but not both. I know how to do this using a custom link tool but was interested to know if the ConnectionPointType can be used for this.


1 Reply

J. J.Nagarajan Syncfusion Team July 3, 2008 12:34 PM UTC

Hi Truman ,

Thanks for your interest in Syncfusion products.

When you set ConnectionPointType to "Incoming" of a port, that port should connect with the TailEndPoint of the connector. Similarly when a port's ConnectionPointType is set to OutGoing, that port should connect with the HeadEndPoint of the connector. Please refer to the attached sample, in which Port1(hosted on top rectangle) is set as Outgoing port and Port2(hosted on bottom rectangle) is set as incoming port. Here when you try to connect the connector from Port2 to Port1, the connection gets disconnected. Please refer to the attached video clip that shows this result.

Sample: http://websamples.syncfusion.com/samples/Diagram.Windows/F74897/main.htm

Video: http://www.syncfusion.com/Product/uploads/Video_89c6da1d.zip

Please let me know if this helps.

Regards,
Nagaraj



Loader.
Up arrow icon