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.

Diagram method can''t found

Thread ID:

Created:

Updated:

Platform:

Replies:

48341 Aug 24,2006 03:09 PM Aug 28,2006 06:33 AM Windows Forms 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On August 24, 2006 03:09 PM

Hello,
the new version 4.2.0.60 has dropped the UndoCommand etc. I got following errors when I upgrade from v3.3.0.0.
Any idea to get around?

Lan


Error 27 ''Syncfusion.Windows.Forms.Diagram.Controls.Diagram'' does not contain a definition for ''UndoCommand'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 4956 20 STN.PMA.UL
Error 28 ''Syncfusion.Windows.Forms.Diagram.Controls.Diagram'' does not contain a definition for ''RedoCommand'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 4959 20 STN.PMA.UL
Error 29 ''Syncfusion.Windows.Forms.Diagram.Controls.Diagram'' does not contain a definition for ''CanUndo'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 5089 35 STN.PMA.UL
Error 30 ''Syncfusion.Windows.Forms.Diagram.Controls.Diagram'' does not contain a definition for ''CanRedo'' C:\PMA\STN.PMA.UL\frmDecisionTree.cs 5090 35 STN.PMA.UL

J.Nagarajan [Syncfusion]
Replied On August 28, 2006 06:33 AM

Hi Lan,

Sorry for the delay in response.

UndoCommand(),RedoCommand() methods and CanUndo,CanRedo bool properties of Syncfusion.Windows.Forms.Diagram.Controls.Diagram is no longer valid for the version 4.2.0.60.

You could use the following code snippet to achieve the same

this.diagram1.Controller.UndoCommand();
this.diagram1.Controller.RedoCommand();
bool canundo=this.diagram1.Controller.CanUndo;
bool canredo=this.diagram1.Controller.CanRedo;

Please let me know if you have any questions.

Thanks,
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.

;