Back to Devexpress

PictureEdit.LoadAsync(String) Method

windowsforms-devexpress-dot-xtraeditors-dot-pictureedit-dot-loadasync-x28-system-dot-string-x29.md

latest3.2 KB
Original Source

PictureEdit.LoadAsync(String) Method

SECURITY-RELATED CONSIDERATIONS

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Task LoadAsync(
    string localPathOrUriString
)
vb
Public Function LoadAsync(
    localPathOrUriString As String
) As Task

Parameters

NameTypeDescription
localPathOrUriStringString

The path for the image to display in the PictureEdit.

|

Returns

TypeDescription
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

CancelLoadAsync()

InitialImageOptions

ErrorImageOptions

LoadCompleted

PictureEdit Class

PictureEdit Members

DevExpress.XtraEditors Namespace