ProgressCancelEventArgs

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

ConstructorDescription
ProgressCancelEventArgs(long proceededBytes)Initializes a new instance of the ProgressCancelEventArgs class.

Methods

MethodDescription
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:

ParameterTypeDescription
proceededByteslongThe 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:

ParameterTypeDescription
valuebooleana value indicating whether the event should be canceled.