The OnProgress Event is available in LEADTOOLS LEADTOOLS Document and Medical Imaging and in LEADTOOLS DVD Module toolkits.
The event delegate for writable drive progress events.| Visual Basic (Declaration) | |
|---|---|
Public Event OnProgress As EventHandler(Of MediaWriterProgressEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MediaWriterDrive Dim handler As EventHandler(Of MediaWriterProgressEventArgs) AddHandler instance.OnProgress, handler | |
| C# | |
|---|---|
public event EventHandler<MediaWriterProgressEventArgs> OnProgress | |
| C++/CLI | |
|---|---|
public: event EventHandler<MediaWriterProgressEventArgs^>^ OnProgress | |
The event handler receives an argument of type MediaWriterProgressEventArgs containing data related to this event. The following MediaWriterProgressEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Cancel | The cancelable property for this event type. |
| Complete | Variable containing the current completion status of the writable drive operation. |
| Description | String value description of the current operation being performed, or error encountered. |
| Progress | Variable containing the current progress of the writable drive operation. |
| State | Variable containing the current state of the writable drive operation. |
For an example, refer to MediaWriterDrive.BurnDisc example.
This event is fired for progress events on the MediaWriterDrive object.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code