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
close icon

How draw Line with mouse and add Label

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:



1 Reply

RT Ramya Thirugnanam Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon