IProgressIndicationService.Begin(String, Int32, Int32, Int32) Method

Initializes and displays a progress indicator.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v21.1.dll

Declaration

void Begin(
    string displayName,
    int minProgress,
    int maxProgress,
    int currentProgress
)

Parameters

Name Type Description
displayName String

A string indicating what action is currently performed

minProgress Int32

An integer specifying the minimum indicator value.

maxProgress Int32

An integer specifying the maximum indicator value.

currentProgress Int32

An integer specifying the current indicator value.

Remarks

If you register a custom service that implements the IProgressIndicationService interface, then, when loading a document from the stream, you can call the Begin method as follows:

MyProgressIndicationService.Begin("Loading from a stream...", (int)stream.Position, (int)(stream.Length - stream.Position), (int)(stream.Position));
See Also