Undo with ContinuousMode turned on.
Posted: Thu Jun 30, 2016 3:51 pm
Hello, I am allowing my users to add annotations to a pdf by using the following method:
Notice the Continuous Mode is true, thus allowing the user to pick up their pen and draw as long as they want. However, i have some questions reguarding ending their "Session" and undo.
1. My undo button looks like this:
but in Continuous Mode, this would undo ALL their pen marks How do I undo each mark in this case?
2. Is there a method to call that would end their mode with the freehand tool, perhaps a selection mode method??
Code: Select all
gdViewer1.AddFreeHandAnnotInteractive(this.useColor, (float)(0.02), System.Drawing.Drawing2D.LineCap.Flat, System.Drawing.Drawing2D.LineCap.Flat, 1,true);
1. My undo button looks like this:
Code: Select all
gdViewer1.DeleteAnnotation(gdViewer1.GetAnnotationCount() - 1);
2. Is there a method to call that would end their mode with the freehand tool, perhaps a selection mode method??