IProgressMonitor Abstract Class

The object of this class is a progress monitor. It displays a task's calculated progress in the UI and checks if the user has requested to abort the computation. Use this object for computations that take a long time to complete or if the UI might freeze during the computation. When displayed in the application, each progress message has four items:

This class provides the following functionality and abort interaction:

Example:

progMon.BeginTask("Process DQS")
progMon.SetSubTaskName("Compute UI segments")
progMon.SetTaskProgressPercentage(33)
progMon.SetSubTaskName("Compute the rest")
progMon.SetTaskProgressPercentage(100)
progMon.EndTask(True)
Note:

There should be the same number of calls to BeginTask as to EndTask.