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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How draw Line with mouse and add Label

Thread ID:

Created:

Updated:

Platform:

Replies:

140841 Nov 9,2018 07:09 PM UTC Nov 13,2018 04:24 AM UTC WinForms 1
loading
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);
            this.diagram1.Controller.ActivateTool(tool);
        }

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:
DrawingTool-Label
 
  
Regards,  
Ramya T 


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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;