ProgressCancelEventArgs
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.ms.System.EventArgs, com.aspose.zip.ProgressEventArgs
public class ProgressCancelEventArgs extends ProgressEventArgs
Class for cancelable event data containing the number of bytes proceeded.
Constructors
Constructor | Description |
---|---|
ProgressCancelEventArgs(long proceededBytes) | Initializes a new instance of the ProgressCancelEventArgs class. |
Methods
Method | Description |
---|---|
getCancel() | Gets a value indicating whether the event should be canceled. |
setCancel(boolean value) | Sets a value indicating whether the event should be canceled. |
ProgressCancelEventArgs(long proceededBytes)
public ProgressCancelEventArgs(long proceededBytes)
Initializes a new instance of the ProgressCancelEventArgs class.
Parameters:
Parameter | Type | Description |
---|---|---|
proceededBytes | long | The number of bytes proceeded. |
getCancel()
public final boolean getCancel()
Gets a value indicating whether the event should be canceled.
Returns: boolean - True if the event should be canceled; otherwise, false.
setCancel(boolean value)
public final void setCancel(boolean value)
Sets a value indicating whether the event should be canceled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether the event should be canceled. |