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

How draw Line with mouse and add Label

Thread ID:





140841 Nov 9,2018 07:09 PM UTC Nov 13,2018 04:24 AM UTC WinForms 1
Tags: Diagram
Nancy Blanco
Asked On November 9, 2018 07:09 PM UTC

Hello, i need to draw a line with the mouse, also add a Label but it does not allow me to draw the Label. My code is:

       private void SetComposition(LineBaseTool tool)
            tool.HeadDecorator.DecoratorShape = DecoratorShape.FilledDiamond;
            tool.TailDecorator.Size = new SizeF(12, 12);

call function: SetComposition(new OrthogonalConnectorTool(this.diagram1.Controller));

Draw this:
By i need:

Ramya Thirugnanam [Syncfusion]
Replied On November 13, 2018 04:24 AM UTC

Hi Nancy,  
Requirement: Add Label for a drawing  Connector.  
We have created a simple sample to add label for custom drawing tool . please refer to the sample from the below link. 
Sample link:
Ramya T 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon