Show / Hide Table of Contents

Class ProgressMonitor

ProgressMonitor is an interface that an application can use to indicate the progress of a lengthy operation (such as PDFDoc.Save()).

ProgressMonitor has a range and a current position. The range represents the entire duration of the operation, and the current position represents the progress the application has made toward completing the operation.

Inheritance
System.Object
ProgressMonitor
Namespace: pdftron.Common
Assembly: PDFNetAndroid.dll
Syntax
public abstract class ProgressMonitor : IDisposable

Constructors

ProgressMonitor()

Instantiates a default ProgressMonitor object

Declaration
public ProgressMonitor()

Methods

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

GetPos()

Get the current position of the progress monitor.

Declaration
public abstract int GetPos()
Returns
Type Description
System.Int32

position of the progress monitor

GetRange(ref Int32, ref Int32)

get upper and lower limit of the progress monitor

Declaration
public abstract void GetRange(ref int start, ref int finish)
Parameters
Type Name Description
System.Int32 start

lower limit of the range

System.Int32 finish

upper limit of the range

OffsetPos(Int32)

Advances the current position of a progress monitor by a specified increment and redraws the bar to reflect the new position.

Declaration
public abstract int OffsetPos(int offset)
Parameters
Type Name Description
System.Int32 offset

advances the current position of a progress bar control by a specified increment and redraws the bar to reflect the new position.

Returns
Type Description
System.Int32

the previous position of the progress monitor

SetPos(Int32)

Set the current position for a progress monitor and redraws the bar to reflect the new ranges.

Declaration
public abstract int SetPos(int pos)
Parameters
Type Name Description
System.Int32 pos

the new position of the progress monitor

Returns
Type Description
System.Int32

the previous position of the progress monitor

SetRange(Int32, Int32)

set upper and lower limit of the progress monitor

Declaration
public abstract void SetRange(int start, int finish)
Parameters
Type Name Description
System.Int32 start

lower limit of the range

System.Int32 finish

upper limit of the range

SetStep(Int32)

Specifies the step increment for a progress bar monitor.

Declaration
public abstract int SetStep(int nstep)
Parameters
Type Name Description
System.Int32 nstep

new step increment.

Returns
Type Description
System.Int32

the previous step increment

StepIt()

Advances the current position for a progress monitor by the step increment (see SetStep) and redraws the monitor to reflect the new position.

Declaration
public abstract int StepIt()
Returns
Type Description
System.Int32

new postion after stepping

In This Article
Back to top Generated by DocFX