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.

Custom Ports

Thread ID:

Created:

Updated:

Platform:

Replies:

72007 Feb 26,2008 10:22 AM Mar 6,2008 04:43 PM Windows Forms 1
loading
Tags: Diagram
Matt
Asked On February 26, 2008 10:22 AM

When I create a custom port it shows a blue X on the node. Is there a way to make the port not have a symbol associated with it?

Dim pp As ConnectionPoint = New ConnectionPoint()
pp.Position = Position.BottomCenter
pp.VisualType = PortVisualType.Custom
pp.ConnectionPointType = ConnectionPointType.IncomingOutgoing
fromnode.Ports(fromnode.Ports.Add(pp)).Connect(line.TailEndPoint)


Administrator [Syncfusion]
Replied On March 6, 2008 04:43 PM

Hi Matt ,

Sorry for the delay. If you want to show the ports without the symbol, then you have to set the node's FillStyle.Color and LineStyle.LineColor to Transparent. Please refer to the following code snippet.

Dim con As ConnectionPoint = New ConnectionPoint()
con.VisualType = PortVisualType.Custom
Dim m_rect As Syncfusion.Windows.Forms.Diagram.Rectangle = New Syncfusion.Windows.Forms.Diagram.Rectangle(120, 30, 60, 30)
m_rect.Ports.Add(con)
Me.diagram1.Model.AppendChild(m_rect)
m_rect.FillStyle.Color = Color.Transparent
m_rect.LineStyle.LineColor = Color.Transparent

Please refer to the attached sample that illustrates this.

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

Please let me know if you have any questions.

Regards,
Nagaraj



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.

;