Error processing SSI file
(Leadtools.Annotations.Automation)

Show in webframe

Cancel Method






Cancels the operation currently being performed in this AnnAutomation.
Syntax
public virtual void Cancel()
'Declaration
 
Public Overridable Sub Cancel() 
public virtual void Cancel()
-(void) cancel;
public void cancel()
 function Leadtools.Annotations.Automation.AnnAutomation.Cancel()
Remarks

Cancels any operation currently being performed in this AnnAutomation. An operation can be:

To end the current operation with committing, use EndDesigner.

Use the following code snippet to determine the type of operation currently being performed by this automation:


            // Get the current designer
            AnnDesigner designer = annAutomation.CurrentDesigner;
            if(designer is AnnDrawDesigner)
            {
               // Drawing. You can cast further to get the specific draw designer or check the object ID using designer.TargetObject.Id
               // You can also use designer.HasStarted to check whether the designer has started working (is actually drawing an object)
            }
            else if(designer is AnnEditDesigener)
            {
               // Edit. You can cast further to get the specific draw designer or check the object ID using designer.TargetObject.Id
               // You can also use designer.HasStarted to check whether the designer has started working (is actually editing an object)
            }
            else if(designer is AnnRunDesigener)
            {
               // Run. You can cast further to get the specific draw designer or check the object ID using designer.TargetObject.Id
            }
            else
            {
               // No operation
            }
            
Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members

Error processing SSI file
  Leadtools.Annotations.Automation requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features