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

Customize In build Copy and Paste Function of Diagram nodes

Thread ID:

Created:

Updated:

Platform:

Replies:

142791 Feb 20,2019 05:00 AM UTC Feb 20,2019 09:57 AM UTC WinForms 1
loading
Tags: Diagram
Unknown
Asked On February 20, 2019 05:00 AM UTC

Hi,

How to Customize Diagram nodes copy and paste functions.If you have any demo sample of  this functionality in Winform.Please provide us demo sample or any custom changes required for this functionality please help us.

Thanks & Regards,
Sumit





Aravind Ravi [Syncfusion]
Replied On February 20, 2019 09:57 AM UTC

Hi Sumit, 
 
We have created a sample for how to customize the copy, paste functions. You can inherit the diagram controller class and override the copy function in it.  When perform copy in diagram the copy method will hit, in that method you can define your own logic. Please refer to the below code snippet for how to override copy method 
 
public class CustomDiagramController: DiagramController 
    { 
        public CustomDiagramController():base() 
        { 
             
        } 
        public CustomDiagramController(Syncfusion.Windows.Forms.Diagram.View view) : base(view) 
        { 
 
        } 
        public override void Copy() 
        { 
            // Define your logic here 
            base.Copy(); 
        } 
} 
 
We have attached a sample for your reference. Please find the sample in below link 
 
 
Regards 
Aravind Ravi 
 


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

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