AnnAutomation.prototype.cancel = function()
cancel(): void;
Cancels any operation currently being performed in this AnnAutomation. An operation can be:
(Design user mode) An AnnDrawDesigner is drawing a new object.
(Design user mode) An AnnEditDesigner is editing an existing object.
(Design user mode) The user is selecting a group of objects.
(Run user mode) An AnnRunDesigner is running an object.
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
var designer = annAutomation.currentDesigner;
if(lt.Annotations.Automation.AnnDrawDesigner.isInstanceOfType(designer))
{
// 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(lt.Annotations.Automation.AnnEditDesigener.isInstanceOfType(designer))
{
// 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(lt.Annotations.Automation.AnnRunDesigener.isInstanceOfType(designer))
{
// Run. You can cast further to get the specific draw designer or check the object ID using designer.TargetObject.Id
}
else
{
// No operation
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.