Skip to main content

PictureEdit.LoadAsync(String) Method

SECURITY NOTE

Downloading images passed as URLs to the LoadAsync method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:

Suppress Control Requests to Download Data from External URLs

Loads the specified image, asynchronously.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

public Task LoadAsync(
    string localPathOrUriString
)

Parameters

Name Type Description
localPathOrUriString String

The path for the image to display in the PictureEdit.

Returns

Type Description
Task

The task.

Remarks

Use the LoadAsync method to load large images or images on a network with slow connections. The LoadAsync method loads the specified image in a different thread.

The LoadInProgress property indicates whether the load operation is in progress. After the image has been loaded, the Picture Editor raises the LoadCompleted event.

Use the following properties to specify helper images:

Use the CancelLoadAsync() method to cancel the asynchronous image load.

See Also