Inform the document viewer that this command is about to run with the specified value.
DocumentViewerCommand.prototype.preRun = function(
documentViewer,
value
)
preRun(
documentViewer: DocumentViewer,
value: any
): boolean;
documentViewer
Owner document viewer.
value
The value to be used with the command.
true to continue running the command; otherwise, false to abort.
This method informs the document viewer that this command is about to run by creating a new DocumentViewerOperationEventArgs object with DocumentViewerOperation.RunCommand and the command object in data1 in Data2 and IsPostOperation set to false then firing the Operation event.
This informs anyone listening to the event the command is about to run which can be important if the command is slow. For example, to create a wait dialog in the user interface in this case.
The listener can also abort the execution of this command by setting the value of Abort to true. Which will result in this method returning false to the document viewer and the running of this command is canceled.
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